Cold sores/herpes

I been talking to this boy and we had sex 2 days ago, I saw him today and he has a cold sore on his lip that wasn’t there before. I’m kinda worried about me getting cold sores now, I really don’t know how cold sores work but I need some advice. I really like him but if I end up getting cold sores I would really be pissed