Yes, gst on input stock shall be paid to government
As per Section 29(5) of CGST Act, every registered person whose registration is cancelled shall pay an amount, by way of debit in the electronic credit ledger or electronic cash ledger, equivalent to the credit of input tax in respect of inputs held in stock and inputs contained in semi-finished or finished goods held in stock or capital goods or plant and machinery on the day immediately preceding the date of such cancellation or the output tax payable on such goods, whichever is higher, calculated in such manner as may be prescribed.