If you place an order during regular market hours, your order may be filled instantly. So, you may not have the ability to cancel. You'll need to sell out of the holdings.
However, if you place an order outside of regular US market hours, you'll be able to cancel at any time prior to regular market open.
