..its worth saying too that puppies need occupying, if you dont keep their attention they can get destructive to get your attention. Lots of toys and different things for them to chew for the puppy stage.
You'll get alot of spots on the carpet, but choose a word for the 'toilet' and take them out more than you need to and that milestone will be passed easily, if its your first dog i can recommend a local puppy training class - this will give you the control and help establish the relationship with the dog if you struggle at all with things like walking to heel, stopping them jumping up, recall etc etc
sounds harsh, but getting them a pet cage to sleep in at night for the younger years can give you peace of mind too