The idea of learning from the past so that mistakes are not repeated is one of the basic foundations for studying the past.
But it should be remembered that each situation is different, no matter how close it resembles a past. For instance, the US fought against Iraq's army and easily expelled them from Kuwait and thought that they could easily defeat the government of Iraq in the Second Gulf War, forgetting that the Kuwaitis supported the US coalition coming in (and most thought that the Iraqis would welcome the US in indefinitely).
The trick is to pick the correct lessons of the past and apply them to the correct situation, thus mining the wisdom of past lessons learned.