In your case, you probably shouldn't get the puppy.
Many dogs are okay being left alone all day, because they spend most of the day sleeping anyway. Many, many people have jobs and leave their dogs home all day, but with a one-bedroom apartment you have to put in a little more effort into the dog. If you want to leave them home ALL day, then you should try to get someone to come and take the dog out during the day. Being in a smaller space, the dog can also become really stressed if you don't take it out for longer periods of time. Say, if you leave it home all day and then only take it on a ten minute walk after work, then put it back in the apartment, it can feel cooped up and could get stressed or start to destroy your apartment.
One (more expensive) alternative is a dog daycare center. This can help socialize the dog and also keeps it exercised and entertained. If you do this 2 times a week, the price isn't going to be too bad and it is still better than nothing. A general work day with a dog in an apartment is taking it on a long walk/run before work to tire them out, leave them home with a bit of food/water, come home for lunch and give them a bathroom break, give them a short walk (depending on how close you live from work), then right after work give them another longer walk or a nice park/dog-park visit. Then, right before bed, you should take them out again.
Another important thing to keep in mind is entertaining the dog. This is important in a one-bedroom apartment over a house because of the small space. Make sure to leave them with safe toys (for example, they mustn't be made of rawhide) to play with. If a dog becomes bored, they can become destructive. Another way to keep them entertained is to use puzzles with treat rewards. This can stimulate the dog's mind, which is as important as their body. This can also be accomplished with training when you get home from work or in the morning.
Puppies needs are different. Puppies can't hold their bathroom breaks for as long as older dogs with more bladder control, and have many more needs when it comes to socialization. If you are leaving pretty early in the morning and coming back pretty late in the evening, then I would say you probably shouldn't own a dog. As given above, it is POSSIBLE to own adult dogs if you put in a lot of effort, but puppies have a whole different set of needs.
So to answer your question, yes it CAN be okay for a DOG if you devote more time to compensate for this alone time and have someone to take care of the dog at least a couple times during the day. Although I worry about how early "early" is and how late "late evening" is.
For a PUP I don't think they can hold a bathroom break very long and need socialization, so I would say unless you have someone to take it out and play with it during the day and fulfill these needs then you SHOULDN'T get the pup.