The funds should stay in your account until settlement, for 3 more days after the purchase, when you have to pay for the transaction.
But instead of doing that, it's being a regular practice for many brokeres, to withdraw the funds instantly from your cash account when you buy shares, than...