Yes. To liberate Peru from Spanish rule, General José de San Martín led his Army of the Andes on a daring crossing of the Andes Mountains from Argentina into Chile (1817), then by sea to Peru (1820).
The Andes crossing (via passes like Los Patos and Uspallata) was a masterpiece of logistics and leadership: moving ~5,000 troops, artillery, and supplies over 3,000+ meter peaks in winter. It surprised Spanish forces in Chile, leading to victory at Chacabuco and Maipú, securing Chilean independence as a base for the Peru campaign.
Without this crossing, the liberation of Peru would have been vastly more difficult.