If a TPK occurs, does it mean the end of our campaign?
No. There are many ways to continue the story after a TPK, including having the players roll new characters, reincarnating the party, or introducing a plot twist that revives the group.