Do I have hsv1???

I kissed and had sex with someone a week ago and they just texted me that they have a cold sore. Does this mean I have hsv1? How will I know?