Charging money in order to join or open up a community?

Hello,

is there a build in way to create different memberships and charge money for some of them?

Thanks,

Fabian