selam: if the company terminates and they don't give NOC you will be notified by authorities to leave the country ASAP. Besides you could be banned

If the bank from which you have the loan is the same where your salary is transfered they will be notified of your terminatio by the company and for sure they will ask you to settle all debts before departing the country.

If yoiu fail to do so they could file a case against you in capital police and you could held at the airport even jailed until a settlement is received by the bank.

Save the hassle, save the worries just try to settle the debt with the bank.

Regards!!