Depends on how well you know him. If you don't know him and are just walking by he is being rude and needs to be reported to the school office. He has no right to touch your body. If you are dating him and have a close relationship it can be all right in the right place. For some boys it is a means of showing possession to other boys. It all depends on the situation and relationship.