I think that you have plenty of time to train the dog before the baby is born. The only issue would be having enough time for a young dog once the baby is born. I have an adult dog that doesn't require a lot of attention, is quite independent with the doggy door, BUT I feel very bad about having close to zero time for the dog at the moment. We still go for short walks everyday but that is pretty much it. My baby is still 2 months old and hopefully it will get better with time. It might be harder for you with a young dog.