Can you get herpies this way?!?!?!

Ok so I just had sex with my boyfriend and my period just ended but I guess there was still blood down there and now im scared I don't want to get herpies so is it possible it have sex and get herpies if he didn't cum but there was pre-cum 😰😰😰😰😰omg I'm so nervous and scared any advice?