That’s not my purpose so dying that way doesn’t seem that appealing.
Replace it with whatever you consider “worth dying for”.
In that case it seems all right. Certainly if I died in Apollo 1 and I cared about spaceflight and making it to the Moon before the Russians I wouldn’t see it as unworthy.
The Shuttle deaths no problem.