There's really no reason why not, as long as you have the funds available to pay for it there & then. Depending on the bank and/or branch you use, this might mean having the actual cash to pay for it or else be in a position to have the amount debited to your account immediately. Naturally, it would not be given to you instantly if time was required to clear a cheque or something.