Can I get a portion of my home sale directly from the bank after selling the house?

If I sold my home for $500,000 and went to my bank to deposit the check but wanted to take $50,000 of it in cash would the bank give it to me right there?