Dental while pregnant

Destiny

I'm currently 21 weeks pregnant an just started getting excruciating pain in my tooth. Found out I need a root canal! Has anyone ever had one during your pregnancy ?? Is it better that I get it done right away? I'm in so much pain