Understanding one's mistakes in the past can certainly help us avoid them in the future. This applies to every aspect of life, not just history; looking at areas where one did poorly on an exam, and then working on the specific type of questions you missed, will result in a better result the next time you are tested, and the same is true for history.