It depends on the extent of the damage. Minor issues like broken hardware or weatherstripping can often be repaired. However, if the window frame or sash is damaged, or if the window is not sealing properly and causing energy loss, it may be more cost-effective in the long run to replace the window.