Dying is almost always a bad thing in Team Fortress 2 (indeed, most shooters). You aren’t helping your team while dead, you aren’t having fun while dead, and a good many unlocks are dedicated to keeping the player or his teammates alive. Trying not to die is, for the most part, a pretty good strategy and you’ll go far with it.