Once your dog is crate trained and house trained fully, you can leave the dog in a crate for up to 8 hours.
A three-month-old puppy should be fine in the crate for three hours.
Puppies should sleep in their crates at night, as this helps them learn to sleep through the night.