If you place a market order and the market is open, you will get filled immediately. Therefore, expiration does not apply to market orders.