Yes, it's possible. The fact is, it's up to you whether you want to close your accounts after you pay-off the debts. Closing paid-off accounts will lower your available credit and will subsequently lower your credit score.
If you're looking to close your accounts, close the newer ones rather than the ones you've used for a longer time. Having long-standing accounts will establish a good credit history and will help to raise your score.