These are all nuances, and interesting to talk about.
Yes, right, because we sometimes choose not to survive if the cost in pain in our view would be too great.
Survival itself is valuable only to the extent that it would lead to more pleasure than pain.
So I think we're agreeing that any goal to "survive" is a valuable goal only to the extent that we think it will lead to more pleasure than pain.
I wonder if it was for reasons like this that Nietzsche went for a "will to power" rather than "will to survive." Of course I think there's lots of other opinion out there on how "survival" may be the automatic goal that kicks in instinctively, but that "survival for the sake of survival" isn't on many philosophers' list of good ideas, unless the survival lead to something else (in Epicurus' case pleasure).