Crate training or getting a puppy pen teaches your puppy to stay in a space quietly playing or napping.
Consistency is key in teaching your new puppy good behavior and obedience.
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.