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.