Yes, you can block someone from sending you messages by going to your Settings & Privacy, selecting Communications, then clicking on Direct messages. From there, you can choose who can send you messages.