Has anyone had dental work while pregnant

I need a wisdom tooth out because it suddenly Decided to grow in ugh but I am 2 months away from my due date I don’t know if I should just wait but it’s so uncomfortable cutting into my gum and I want it out but I don’t want to put my baby at risk. Has anyone had any dental work while pregnant?