x-rays during radiation

Is a root canal safe when you’re pregnant?