Sometimes. In some situations, such as opening a new account, your bank will require your Social Security number. But these situations are few and far between.
And a bank will never ask you out of the blue for your SSN. You should never give out your Social in response to emails, texts, or calls saying they’re from your bank.