magnesium 500 tablets

Naz
Any one taking magnesium oxide 500 mg in pregnancy? Is it safe ? Thank you