No, it is not okay to lightly hit a dog. Dogs are not like children – they cannot be disciplined with physical force. Hitting a dog will only make them fearful and/or aggressive. If you need to discipline your dog, there are much better ways to do so, such as positive reinforcement training.