Can I use a PC817 optocoupler to act as a momentary switch? - General ...

Can I use a PC817 optocoupler to act as a momentary switch? - General ...