Magnesium citrate capsules

Has anyone taken this to stay regular in pregnancy????