Part of your pre-puppy preparation should include sleeping arrangements. In this area you may want to consider a crate. To some this sounds cruel but it is not. Dogs being cave animals, once they adjust to the crate they find security. In addition you will find peace of mind knowing they are perfectly safe and completely out of trouble.
Crate trained puppies are also easier to housebreak and train.
They will not go potty in their bed and this helps strengthen their little muscles necessary to hold their urine. Keep in mind that the time duration should be reasonable depending on their age and the time of day. Dogs are also Pack Animals. Your puppy must learn the rules of the pack. His sense of well-being depends on it.