I dunno, I'd have to have witnessed the "hug" to guage the body language. Where I work, I won't even think of hugging a co-worker of either sex. I might give a male co-worker a pat on the back or something similar, with females the extent of contact ends at a handshake.
That’s a good strategy for contact with others in life, not just coworkers.