It depends on the extent of the damage. Minor issues can be repaired, but if the window is too old or severely damaged, replacement is a better long-term investment.