Horrible tooth ache during 8 weeks pregnancy

Hi ladies ....

I’ve beeen having a horrible tooth ache for few days now . I just want some advice from ladies who have experienced tooth ache during pregnancy ... can the doctor fix a cavity while am pregnant ?

Pls advice me