No, the filter is in the hands of everyone who runs a mail server. Gmail et al. run the most centralized spam filters, but anyone running their own MX will almost certainly run their own spam filter as well. Likewise, Mastodon moderation falls to the servers.