How soon can you treat sti/std eith no symptoms.

Patient: How soon after sex can you treat an sti/std? I had protected sex but unprotected oral sex, I have doxycycline, which is used for some sti’s. I f I start taking it will it be too soon. I understand I should see a doctor for testing but would like a headstart. Is there an incubation period I must wait for?