A crate can be a good idea for house training your puppy, at least in the short term.
Many people who are new to dogs wince at the idea of confining their puppies in a cage, but dog cages make life easier.
It is a good idea to accustom your dog for many reasons, such as vet visits, travel, recovery, and safety.
Make sure the cage is large enough for the puppy to stand up, rollover, and lie down, but not large enough that he can use a corner as a bathroom.
If your puppy uses the crate for more than two hours straight, make sure he has fresh water.