Yes, banks accept deposits during a recession. In fact, banks are safe places to store your cash, as long as the bank is insured appropriately by the government.