You can block someone from sending you message and from viewing your profile. To do so, there are Block buttons on every profile page and on every conversation page.