Discharge and pregnancy

Is it normal to get thick white discharge at the very end of your pregnancy? I went to the doctor Tuesday and I’m 2cm dilated idk if that will matter about the discharge. But is it a sign I’m going into labor a little sooner? It’s not like my mucus plug just discharge.