Each federate within themselves but they don’t federate between each other. But there are “bridge” type services you can use, for example, if you want to follow a mastodon user or an RSS feed on nostr or vice versa, it’s just that they’re bolted on after the fact as opposed to being smoothly integrated with the rest of the protocol. Like having one bot which automatically re-tweets stuff from one platform to another.