When it comes to communicable diseases and infections that can be spread (especially STDs), it is ALWAYS better to be safe than sorry.
PLEASE wait until the meds are done before having unprotected sex again.
Why? Because no two people's bodies are the same and no two people's bodies will react the same to medications.
Though the bacteria might be killed within 5 days for one person, it could take the other person the whole 7 days to kill off the bacteria.
Hence, better be safe than sorry because YES, it COULD possibly still be spread before the full doses are done.
Best of luck and take care.