May I ask the optocoupler PC817

May I ask the pin 1 and pin 2 of the optocoupler PC817 to input 5V, are pins 3 and 4 the conduction signal? I hope that pins 3 and 4 are only switching signals, without voltage