if there were two guys on the moon and one hugged the other would that be okay or what?
If the other guy consents, sure.
However, I doubt that hugging with space suits on would be satisfactory, and I cannot recommend removing them either, so I don't think it'd feel good to hug on the moon.