If that is the case, then the character's story should be about how they deal with their 'inevitable' death. So, it depends on the character arc more than anything else.
Now this is just a gag story.
Although, yes, it really pains me if a character dies in an accident/unexpected way. Especially if they die before being able to fulfill their goal/dreams. For me, it's about how the characters around them react to it that either make or break this for me.
A good example for both of these points would be the movie "I want to eat your Pancreas". Just watch it, it's great.
Yep, nothing sad happens at the ending, not at all.