Your dog will only understand if the punishment comes right after the behavior you want to correct. This helps your dog understand.