I need help

after finishing my 7 days of doxycycline… I had waited 4 days after to have sex am I still about to infect someone else? I just realized they took off the condom without permission and now I feel bad