Your credit score will be impacted if you have to close a card or loan that has been open for a time.