Yes. You can buy and sell the same stock on the same day, as long as:

  • You have enough buying power (for buys)
  • You have enough holdings (for sells)

When you sell something and the trade gets executed, the sale proceeds are immediately added to your buying power.