Yes, the futures contract can be settled before expiry. ... This can be done by either selling the same contract to some other party or by taking an opposite position in a new contract that has the same expiry and contract price.