If you still get value from your cards beyond the annual fee, it may be prudent to keep them open to still earn rewards, or as a backup plan. But if you are worried that you will only run up debt, you should close the old cards.