This is probably TMI

So with my last the only thing I can really remember is at the end I had significant amt of upset stomachs and diarrhea before I went into labor. And recently I've felt the same way, has this happened to anyone else? I heard someone mention this happens to kind of clear your body out before labor but not sure how true that is...