Dental work

So

Is it safe to get dental work when pregnant? Like xray cleaning , cavity filling?