I mean? That just feels like a trolling moment?
I personally like character deaths (especially when they stay dead! 8) ) I’m not against characters getting into a relationship and then one or both of them dying, my problem is more on how it’s done, the one you described just sounds..... like they wanted to annoy their audience. But there’s also lack luster ones like tonks and lupin from Harry Potter where most of the romance was off screen and then next time we see them they dead and I’m just like “great glad I got to experience exactly zero of their relationship so I can feel nothing for this moment.”
Character deaths are important- >the character stops existing and stop being able to actively effect the plot< You should really treat them with a lot of respect weather or not they’re a part of a shipping war or not.
Can you kill a character before they tell their ship partner they love them? Sure! Do it, so long as you put a lot of thought into it and how the others are gonna react to this death.
It might be >really< important. it might be really world shaking for a character to loose a love one before telling them they love them. It can help a character who laughs in the face of danger become humbled by the idea of death when someone they care about actually dies mortality can finally become real for them which can be really great character development.
What your describing sounds much less like someone was actually trying to write a good story and more just trying to shock the audience.