Controlling 120v AC

Clearly my understanding is low in this area, but aren't the opto-isolators used here just as much for blocking noise as for providing safety?