Yup congrats; comeback wins are part of the game
Even grandmasters sometimes slip or make great comebacks, but generally speaking, the higher the ratings than the less this happens. At the highest levels of play, the smallest margin of error is enough for them to capitalize on, but draws are also really likely because both sides are so tough to beat in a chess game
So I was playing the other night and figured I was losing....but then I won....I was surprised . Glad that I had not resigned when I felt that I had lost.