No it's not. You may choose to work at a company or not.
perhaps a company can then ban it's employees from having sex on their own time? or from having male children?
if they don't like it they can quit, eh? how about banning employees from driving cars other than to and fro work since that is dangerous? they can always quit if they don;t like it.
or how about weekend camping trips? vacations to foreign lands?