That depend on the banks policy. The IRS does not care but the bank might. Ask the bank.
If you are on the account then you should not have a problem having your stimulus check deposited to that account.