Crate training or getting a puppy pen teaches your puppy to stay in a space quietly playing or napping.
Puppy gates are helpful to keep new fur friends out of places you don’t want them to be.
For the first few nights your puppy is home, you might want to let them sleep in your room so they are reassured they’re safe.