Discharge

I’ve recently had this thick white pasty almost discharge that kinda has a foul smell. Could it be an infection?