Pooping and throwing up

I’ve been pooping and throwing up a few times a day. Mainly my heartburn causes me to throw up. Is this a sign of labor? Or that labor is near? 37 weeks this Wednesday