It depends. Relays are the Achilles' heel of nostr. They store and forward, often unencrypted, data. That makes them a target for censorship. It is a difficult, shifting target, but it does give governments someone to punish.
They can target authors of client software as well, but that doesn't stop the software from proliferating.