Yes, you may use the proceeds of a stock sale to purchase another stock immediately right after the sale transaction has been fully/partially filled. If you wish to withdraw the proceeds from a stock sale, you must wait for 2 working days after selling the stock to be able to withdraw the funds.