Yes it is safe. In fact it is reccomended. Should your teeth or gums become infected it could harm your baby. The main reason they would want to know if you are pregnant is because of the X-Ray