Yes, instances can set their own rules. Admins can remove content created on their instances that violate said rules.
Instances can also block posts marked as NSFW altogether, or specific languages.
One instance can also block another, so while they do interconnect, posts from a blocked instance will not appear in the "All" feed of the instance that blocked it.