The prices you see on the platform may be delayed, so they can differ from the live market price. When the market is closed, you'll see the last closing price.
Your order always executes at the live market price at that moment, so the price you get can differ from the one you saw. If you want to pay no more than a set price, use a limit order.
If you place an order while the market is closed, it shows under Pending Transactions and executes when the market opens. See Pending orders & market-closed orders.
Related: Pending orders & market-closed orders · How do I buy shares? · NSE trading hours