What is the meaning of [Every dog has his day.]

Even the unluckiest or the most unfortunate will taste success at some point.

Example: Are you surprised that John, the laggard, has got 92 percent marks in math? Well, every dog has his day.