Blocking is useful, but it definitely will depend on what the situation is. If someone just keeps on texting you, could just ignore their texts and not answer them.
They might get the message rather than you outright blocking them.
Sometimes it just becomes plain ordinary necessary to block someone.