Using arduino as a switch?

Is it possible to use arduino as a switch, say if i have a camera that has its own power supply and i want to use a PIR sensor to activate the camera can i use arduino to close the circuit on the camera or would i have to use a relay of some kind to close the circuit?

thanks :smiley:

A relay would work but better would be to use an optical isolator.