The sender of a message has no way to know if the recipient has blocked them or not — or if the recipient read the message or not (if they have Send Read Recipts turned off).
You can block phone numbers, contacts, and emails on your device. You can also filter iMessages from unknown senders and report iMessages that look like spam or junk.