If your goal is to reduce energy consumption, then yes you should replace all of your old windows at the same time. However, replacing even one window in common areas will help to reduce energy use and lower your heating and cooling bills.