Yes it is safe. In fact if you do have problems with your teeth when pregnant it can in some circumstances cause problems for your unborn baby