I was with a girl a while back she had a cold sore

I then got one and it went then went away again iv never had one since February does this mean I have herpes