Dentist

Is dental work ok during pregnancy? I have a cavity that hurts. :(