The hero sacrifices himself for something - that's the morality of it. Now, from another position, of course, you might say that the idea for which he sacrificed himself was something that should not have been respected. That's a judgment from the other side, but it doesn't destroy the intrinsic heroism of the deed performed.
ethics
mythology
The Power of Myth
by Joseph Campbell