I only bug my husband and kids with impromptu hugging because they cannot get away. With friends, I'll announce, "I need a hug now" and they'll gladly oblige. I let many people hug me, especially women, because that's fine. I don't mind in the least. At my church, hugging with the european cheek kiss is a normal greeting among the women. I'm grateful to be included. I'm on hugging terms with my daughter's second grade and third grade teachers because of things that happened throughout those school years to bring us closer and more personal. But I do remember when I tried to hug my mother-in-law before she was my mother-in-law when we went out to dinner for her birthday. She didn't even let go of her husband's hand to reciprocate. She just stood there like a board.
Generally speaking, it's not cool to try to hug a girl if you're a boy, especially a hetero boy. If you're an out gay guy and she's well aware that you're gay, it might be acceptable to hug her because then there's no sexual overtones. As a hetero boy, there'll always been sexual overtones, even when there's none.
Hugging is a tightrope walk for an aspie. Even if you can stand the personal contact, it's the social ineptitude of knowing when hugging is appropriate that'll trip you. It's best to let others take the lead on hugging until you know, for certain, that there's a green light for it.