I wouldn’t do it, especially if you get a puppy. A puppy can’t go that long without needing to potty and dogs in general need to get some exercise. If you aren’t crating the dog, it will get bored and perhaps start chewing up the furniture, carpet and even walls. It would get lonely too.