Having protected sex a day after std treatment?

what happens?? does it make it lose affect? i’m freaking out plz help.
0