If you were taking prescription medications before you became pregnant, be sure to ask your doctor about the safety of continuing these medications as soon as you find out that you are pregnant. Your doctor will weigh the benefit to you and the risk to your baby when making his or her recommendations. With some medications, the risk of not taking them may be more serious than the risk associated with taking them.