I try to avoid that just because I feel like, when you write a character knowing they are going to die, it'll sort of be obvious. I'm more into the method of writing a bunch of characters and killing them when it feels like the right thing to do.