Unfortunately, when a pup ingests something foreign, because of the impact on the puppy's intestinal tract and the possible blockages that it can cause, all kinds of health problems can ensue, including vomiting.
Puppies might even try to eat their vomit, which seems gross for us, but can seem normal for them.