Tooth question

So I had a filling in a top back tooth. I guess it fell out and I had no idea - my tooth is literally in so much pain and when I looked I could tell it obviously had a major cavity. I’m 10 weeks pregnant. If I go to the dentist can they even do anything right now???