If a pregnancy is discovered while taking medication, whether or not this can have an effect on the fetus depends mainly on which type of medication was actually taken. If you are taking vitamins, basically it will not affect the fetus. If you are taking cephalosporins or erythromycin, it will not affect the fetus either. However, there are some drugs that can cause fetal malformations, or clinically cause uterine contractions and the possibility of miscarriage, such as commonly used antibiotics, including ofloxacin, fluconazole, and ciprofloxacin may cause fetal malformations. There are also some medications that can cause miscarriage after taking, such as medications that invigorate blood circulation, such as Dahuoluo Pills and Gui Zhi Fu Ling Capsules, which may cause vaginal bleeding and even miscarriage after taking them. Therefore, it is recommended to bring the medication to the hospital and go to the eugenics department for further counseling before deciding whether it is necessary to terminate the pregnancy.