Yes, this is a good routine for a puppy. You might also consider crate training. Whatever you do tho, establishing a routine and keeping a regular practice of feeding times, exercise/play times & bathroom times will do wonders to keep your puppy's anxiety at bay.
It is worth considering tho that you don't want to train your dog to act out when they simply want attention or a treat.
It might also help to reassure your puppy before you leave and help them "find their spot" or "go to your place". That said, by 18 months your dog should know the place and routine you've trained them to.
I have read that with adult dogs it is better to simply leave and not make a fuss. When you get home tho, reward them for a "good wait" with belly rubs. Remember too that it is not how much of a treat you give them but that you are giving them a treat (or affection) which is the reward.
Lastly, make sure they have something to do while you are gone. If you have the luxury of yard space, consider an automatic ball thrower. Hanging a chew toy or rope knot can also be something for them to play with while you gone.