Dental fillings?

I am currently 20w2d and one of my molars has been hurting for the past few days. Will a dentist be able to do fillings or any procedures while pregnant??