Your instance can block them. Looks like it doesn't block very many, though:
https://mastodon.cloud/about/more
But Mastodon as a whole is just a software project that's freely redistributable. It's effectively impossible to stop an instance from being created which allows anything. Other instances and individuals can refuse to federate with them, and that's basically how that's handled.