No, unless it's directly linked to your actions. I guess it's fun when something good happens because something bad happened first but I think it would be unfair toward people who experienced really bad things that will make them suffer all their life, which reason was there to it? Things are not always getting better and sometimes there is no positive outcome from a situation.
I spent quite some time (years) in the hospital because of sick relatives, I was visiting every day and got to meet other sick people there. At first, their friends and relatives were really supportive, then got tired and stopped coming. A lot of people there were very young, had plans and loved life, there was no reason for them to get sick, lose their friends, their significant others, their place, their pets (because nobody wanted to take care of them), lose their mind and then die alone after suffering a lot. Of course, some still had some family members, but I don't count the numbers of friends, BF, GF, I saw just running away. I also remember the case of a woman of 29 yo or so, she had been in an abusive relationship younger and it took her years to trust someone again, after finally meeting the good one she got sick. She so wanted to be a mom and a spouse but didn't have time left, for once something good happened in her life she couldn't enjoy it, she was too sick to go outside or do anything. We could say: at least something good happened to her before she left, but I didn't see myself telling her or anybody else there "things happen for a reason", they didn't do anything to deserve this. If bad things didn't happen to her first, maybe she would have enjoyed her life better and had fewer regrets because she didn't die peacefully, she was crying a lot saying she didn't want to go like plenty of other people I saw die. For the believers, they can always say something better is waiting for them (real or not), but for the nonbelievers, that's it.
Can we say that genocides and wars happened for a reason? For people who survived and didn't lose hope, maybe something good related to it or not happened to them, some people surely took advantage of it, made discoveries or learned something from it, but what to say to all those sacrificed? "We tortured you, but thanks to you, we made some progress in medicine, like what, nothing happens for nothing"
...
That post is too long. So here what I really think: Bad things are bound to happen, just like good things. Sometimes you will get lucky and make the best of a bad situation, and sometimes you won't, sometimes it will bring you on a different path for the better or worse. There is no good reason why something bad (or good) happened to you...unless you provoked it (like shaking a bee"s nest).