thick creamy white discharge

i woke up with my vagina discharge very thick and creamy my period is supposed to come in 2 days does that mean i'm pregnant or no? should i take a test