You can in the US and it's often done. Codes usually define the fact that you have to exhaust and not recirculate, but don't generally define what air streams can and can't be mixed. Good engineering practice, however, usually combines likes (toilets, janitors closets, showers, changing rooms, etc.) and separates them from the different ones. Note that kitchen exhaust is a different story - it's got its own rules...