Stds and sex

I had protected sex while I was on antibiotics for chlamydia and gonorrhea, can I still have them or am I cured?