Lick fingers

I had an std that I treated and I wanted to know if it’s possible to reinfect yourself? I went out and a guy fingered me for a few seconds. He didn’t put his fingers directly inside bc I had a tampon on but it was over my underwear, and then I licked his finger afterwards. Could I have reinfected myself?

Edit: I took the medication but that would of been the 7th day before I would of been able to have unprotected sex