TMI.. Thick white dischsrge

Okay so I'm supposed to start my period in 2 days and I noticed this really thick white discharge in my underwear.. Is it normal?

I've googled and a lot of people are saying it could be a yeast infection or pregnancy, but I've also heard its normal right before a period.

I have had unprotected sex so I'm wondering if it could be an early sign of pregnancy?

My boobs are also sore, but that could just be because my period is coming up. Thanks