In your opinion, does anyone ever deserve any consequences of their actions? E.g. does a criminal deserve to go to prison? Does a dictator deserve to be assassinated?
It can certainly happen, and I think the intended goal of a justice system is to try to make sure it happens in criminal cases -- though criminals can certainly get away, innocents can be convicted, and sentences can have inappropriate severity, but ideally those are exceptions to the rule.
Beyond that it can certainly happen by accident. I think it is important to remember that "deserve" implies some sort of judgment based worth or merit, even moral connotations. The physics of how the world works is non-moral, so we wouldn't expect any correlation.
(As a side note, I would say I care a lot more about rehabilitation of criminals and prevention of crime than in punishing people. I think those are generally more effective techniques to give ex-cons meaningful lives while decreasing crime. But I don't want this to descend into a huge discussion about my views on penal systems, it's current faults, and how we need to research some things more. If people really want to talk about it, someone can make a thread and I'll ramble on there).