Dental work while pregnant!

Kiara
I am 27 weeks and 3 days. My dentist says I have three teeth that need filled. Is it safe to get them filled while pregnant or should I just wait until after I give birth?