Birth control help

So I got a shot the 23rd of July and August 15th I had unprotected sex and when my boyfriend finished he got some on my vagina, should I buy plan b or will I be protected already. I got my shot roughly a week after my period but if I’m safe I don’t want to spend 60 dollars on plan b