Sure, but that wouldn't have prevented the "cancer" from moving to decentralized networks. If anything it'd probably accelerate the process.
I think the important point is that most operators of nodes on a federated network are not in a position to benefit from this kind of garbage content, and have every reason (and the tools they need) to keep it away from their portion of the network.