Overall, yes, it is ok to hug your dogs. However, you should pay attention if they are feeling stressed or angry for some reason, as that may not be the best moment to do it. Puppies usually like to be hugged!