Dental work while pregnant

I had a tooth filling come out yesterday and now I can't eat as both sides of my mouth I have bad teeth. Does anyone know if I can have dental work done while pregnant?