Yep if you've got a 5 gallon carboy and no need for a clearing tank like me, just make sure you add a blowoff tube, the wider the better. You might lose a pint of beer or so out of the tube, but it's better than painting the ceiling with the stuff.
Fermcap-S is supposed to make it even less messy.