magnesium and early pregnancy cramps

my natropath has put me on magnesium to help with my period like cramps at 7 weeks pregnant. cramps have basically gone after two days. anyone else take. it for the same issue?