They do sometimes romanticize it. I think the crux of it lies in how the story approaches the topic, and how it pays it off in the end.
Before that, though, it is necessary to ask a question. If a character feels at peace once they die, what sort of morals does that show? Are you supposed to...