Sort of, but it won't be as effective as a server defederation.
Users blocking a server basically just hides stuff from that server, and removes any follows you have from that server. It's more like closing your eyes to them than actually restricting them.
You can do a "domain block" by clicking on the profile of a person from that server, then clicking ︙ on their profile, and then "block domain".