Sticky thick yellow snot, slight cough. Bacteria?

Bacteria versus viru. S. Without running a culture, it is impossible to tell. Certainly thick yellow mucous and a slight cough could be bacterial, but it could also be viral or less commonly parasitic. Best to get checked out if it doesn't get better in a few days.