Lol uhm.
The dentist does need to know you're pregnant. And they can do dental work, if they have to give you medication, they'll give you medication that you can use during pregnancy so it doesn't hurt the baby.
I know this because I had a dentist appt. Yesterday and he told me what I just told you.