Hugging in the workplace is highly controversial, and there are a number of opinions about what is and is not acceptable. You should probably avoid a reputation for expressing affection in this way in the workplace, and be aware of your organization's rules or policies.