The antibiotic Azithromycin
will still work.
It is advisable to avoid sexual intercourse whenever there is active sexual infection and when one is on treatment for the same.
Even if you indulge in it, always use a condom.
However, you are safe and protected from re-infection this time.
Get well soon.