The only way it's not okay is if you're trying to piss off their significant other or are trying to get into their pants yourself. Or if your friend doesn't want you to.
Otherwise, friendly hugs are always fine.
Otherwise, friendly hugs are always fine.

