35 weeks and loose stools

hello mommys.. ☺️☺️

I am 35 weeks preggy and since 2 days not been able to digest anything.. loose motions after anything i ate. tummy just pains to let me through the bathroom..then it doesn't pain. and also i ate chilly sause days before.. although very little. does it mean anything.. should I go to doc..?