Virender, depends on which contract and which broker you are trading with.
A lot of contracts are cash settled, so even if you don’t cover the position, it is cash settled after the expiry and you get back the MTM profits or the MTM loss is debited from your account.
There are certain contracts which have phsysical delivery to it, in which case there will exist a chance that the counterparty to your trade can request for delivery in which case you will have to either give/take delivery of the contract you are trading based on if you are short/long.
But most online brokerages because of the inconvenience delivery of commodity causes, don’t let a contract go into compulsory physical delivery period and square the position a day before that.
If you mention which contract I can let you know if it is cash settled or not. You can also have a word with your brokerage on this.