Bone densitometry is safe. But the machines that use x-rays should not be used on pregnant women. This is usually not a problem since osteoporosis usually happens during and after menopause.