Just make sure you get the right dog for your lifestyle. Obviously you don't want a Blue Heeler or other dog with a high activity level if he/she is going to be home alone 8 hours a day.
My dogs are outside during the day, weather permitting. In warmer weather (spring, summer, early fall), in the morning I visit with them for a bit before they go outside. They're out in the yard for 8-12 hours a day. Mostly they just sleep, chase bird out of the yard and growl at the UPS truck. In the evening when I get home from work, my sister and I take them for a walk. When we get back, they stay outside to eat, drink and do their business before coming in. Then they socialize with the family for a few hours, go out for a quick potty break, then go to bed. On my days off or when I work short shifts, we go to the park, swimming in the creek, hiking, or I just sit outside with them and read .
In the winter its harder. The dogs go out for a potty break in the morning and come back in until the last person to leave goes to work. Then they either go out for the day, or if its too cold they go out for a potty break then come back in until someone gets home for work. If needed, I have a couple neighbors who can come let them out for a few minutes. Then when I get home from work, we play in the house or have the occasional snowball fight. Once the roads turn icy its not safe to walk so we have get a little creative with finding ways to entertain the dogs so they don't go stir crazy. In the winter they get to go on short trips to the grocery store. Its cool enough to leave them in the car for a few minutes and it gives them a little outing, which they enjoy.
Its very possible to have a job and a dog. You just have to come up with a routine that works for you.