Many owners of dogs have jobs so you can too. You just have to be sure that your dog has everything they need when you are not home. Access to food (when needed), water, the toilet during long periods of time, and lots of enrichment.