Sometimes puppies make a mess when they are playing. Sometimes they are being clever, but that gets them in trouble. When you are working with a puppy you need to set boundaries ‘before’ the puppy starts acting bad.
Set the ground rules and do not break them. Let your puppy know where the limits are. A puppy who is punished without knowing what it is doing wrong can develop ‘reactive issues’. These are stress and frustration problems that lead to excessive barking, biting, jumping, and running.
Instead of punishing a puppy take the time to teach it. But also remember that it is a baby. It needs stimulation and games. It needs ‘you’ to play with it.