Switched banks with a credit card

I recently switched banks. I had my first credit card with the previous bank for about 5-7 months before I switched to a new bank to join finances with my wife. If I transfer all my money and close out my old bank should I cancel my credit card? Or would that hurt my credit score? I haven’t used the card in a month or so