Tooth decay during pregnancy


i now need 3 teeth extracted... i have had this pain for over 5 months on and off... i went to dentist they would not do the procedure and told me i would have to go into the hospital or wait till after i deliver... can this lead to miscarriage, whether i get the teeth pulled under anesthesia or wait till after delivery?