Unfollowing someone doesn’t stop messages from them. However, if you don’t want to get messages from them turn off the message request or block them.