Is it selfish to have a child?

My friend's mother just passed. I am very heartbroken by her lost. I couldn't imagine going through something similar. It just got me thinking about my decision to have children. I know that one day i will have to go through something like that and It completely devistates me. I can't help but to thinking, is it selfish to bring a child into this world and have them go through something similar and even one day have to face death themselves? I may sounds crazy right now for thinking this way but I just feel a great deal of emotions. My husband views things completely differently. I was wondering if anyone had to go through something like this at some point? How did you come to terms with it?