You can deposit it into a BOFA ATM however you probably will NOT be given immediate access to the funds.
Why not call Bank of America and ask them? 1-800-622-8731
If you absolutely need the funds immediately you could get it cashed at one of those check cashing places BUT they charge a hefty fee it's usually a certain % of the amount of the check. So if it's a small check under $100 then it might be worth it if you need food/gas/other, otherwise call BOFA and ask them.