OK by who?
If you were a club owner that did that, you’d have some people feel supported by your choice and many people offended by it.
You could expect to get blackballed by comedians and patrons who’d never bother with those jokes but see you as being an arrogant bourgeoisie, abusing your commercial power over artist’s own expertise in their craft.
You’d create your safe space, but lose more than just what you ruled out.
There’s no objective “ok” or not, just consequences.