milk Of magnesia while pregnant

Ti

So my ob told me to start taking a Table spoon of milk of magnesia , but I have heard that it isn't safe by others I don't wanna hurt my son what do I do