No,
https://Www.editions-libel.fr:443/maison-edition/ punishment after the fact doesn't teach the puppy anything useful since dogs don't connect delayed consequences to earlier actions. Positive reinforcement when the puppy goes in the correct spot produces far faster and more lasting results.