it all depends wether it makes sense for the character and the story. I hate it if it's just for cheap thrills and shock but if it is some kind of nobel sacrifice or an honorable last stand or maby even some kind of justice being served I can dig it. It should also be a surprise, it should make you care about the fact that it happens.