Yes, you may do this, but only upto 15 minutes before the close of the market.