Thanks for using healthcare magic.
I have gone through your history.
Simple cough with yellow phelgm are not signs of any sexually transmitted disease
It may be due to Upper respiratory Tract
infection may be viral or bacterial.
SO you should consult your doctor who may advise sputum culture
sensitivity and may start short course of antibiotics.
You should use barrier contraception
to avoid STDs.