Unless you plan to keep your dog outdoors--and few of us do because it's not recommended--you'll need to teach your dog where to eliminate. Therefore, house training (also called housebreaking or potty training) is one of the first things you need to work on with your dog. Crate training can be a very helpful part of the training process. This includes house training as well as many other areas of training:
If you’re like me and have trouble keeping up with your pup at all times try using a tether. You can buy a tether from the pet store or simply do what I did and use a long lead or leash. If tethering your pup to you at all times is what it takes to make sure they’re not sneaking off then go for it. If you’re not keen on keeping your dog tethered you can use baby gates or closed doors to restrict your dogs access to the whole house.
Don’t punish your dog if they pee inside. Regardless of all those old training ideas punishment isn’t a good deterrent for house training. Yelling at your dog after the fact just confuses them and makes them nervous around you. If you catch your did in the act you can try to get their attention & move them outdoors. If you’re successful & they continue going once you get outside praise them like crazy. Are dog head halters cruel?