Can a guy get touchy as friends?

If im laying next to a guy and he starts playing with my hair and rubbing his fingers up and down my back. What is he thinking? May seem like a stupid naive question but i want to know details that would go through his head while doing that.
Can a guy get touchy as friends?
Post Opinion