Cold sores and herpes?

Can someone please explain this to me. So I've done some research and it says a cold sore is herpes. Dont cold sores go away with some time? I'm so confused, so if I've gotten a cold sore before, does that mean I have herpes ? It's gone away though so I'm not understand this 🤔 could I be wrong and it wasnt a cold sore? Was it a canker sore? Is there a difference? Someone help 🤦🏽‍♀️ I know that way before I was sexually active I would get them around the cold

I added a picture to show what I'm talking about