Green poop?

Had to rush to the bathroom a second ago thinking I was going to have diarrhea. Turns out I did have a loose stool, but it was green...very green lol. I haven't ate anything different nor icing of any color for it to turn. I'm 36 weeks and a day. Could my body be cleaning out this early?