Some moms-to-be think they can't get dental treatment during pregnancy, but that's not true. If you suspect you have a dental infection, you should see your dentist right away. That's because there seems to be a link between oral infections and the risk of preterm birth.
Especially with something as simple as a cavity, it will be easy to treat your dental infection without causing any harm to your baby. Many antibiotics are safe to take during pregnancy, and you can even get X-rays as long as your dentist covers your belly with an abdominal shield to protect the baby from potentially harmful radiation. Just be sure your dentist knows you're pregnant, and he'll be able to choose procedures and medications that will be safe for you and baby.