Please help, very scared

Okay so I have been having thick yellowish discharge for a few days and I looked it up to see what it could be.. Apparently that kind of discharge comes with being pregnant?? Is this true?