The just-world hypothesis or just-world fallacy is the cognitive bias (or assumption) that a person’s actions always bring morally fair and fitting consequences to that person, so that all noble actions are eventually rewarded and all evil actions are eventually punished… The hypothesis popularly appears in the English language in various figures of speech that imply guaranteed negative reprisal, such as: “You got what was coming to you”, “What goes around comes around”, and “You reap what you sow.”
As per Wikipedia:
If you accept this definition of the just-world hypothesis as a cognitive bias then your inquiry into whether it is true does not make any sense.