Yeah I do this. But do keep it under 5 seconds and never touch bare skin, that is very homosexual indeed and your friend will get creeped out.
These are good guidelines, within which it is acceptable.
Also, if on a rugby pitch your shoulders are wrecked from drills, you may give/receive brief massages from teammates while in line for next railroads drill.