No, unless you’re closing an account with a negative balance, switching banks typically does not affect your credit score.