constipation?

Is milk of magnesia safe to take for constipation? It's gotten to where it's kind of extreme and I just want relief! TMI I know ...