No - punishment after the fact teaches a puppy to fear its owner or hide to eliminate, not to associate the correction with the actual behavior, since puppies only connect consequences to actions within
signs a puppy needs to go potty couple of seconds.