Should I call my dr.? FTM

I am 39 weeks. Yesterday I noticed yellowish discharge and just a few minutes ago I wiped & it was thick brown mucus like with some pink. I've been having cramp like feelings since last night. Should I wait it out or go to the hospital? FTM & this is new to my sisters 😥