In case of a margin shortfall, pursuant to taking positions in both Cash and Derivatives segment, your positions might be squared off to recover those margins.
To know why there could be a margin shortfall later, despite having sufficient margins at the time of entering into a trade, click here.