Getting cavity filled during pregnancy ?


Im a ftm and i recently just went to the dentist and they said that i need to go back because i have a small cavity that needs to be filled in but im not sure if i should go through with it they told me it was safe but i need all the reassurance i can get any advice ladies ?