Yes, as long as you take the dog out right before you leave and right after you get back. For a puppy, it’s better not to leave him alone for more than 8 hours.