You can always create a community on the free public relays but banning users or content would be difficult.
Although I'd imagine that community specific relays that offer to "host" your community may be a thing. That or you can run your own relay, like a fedi instance where you have full control over who is allowed to post