Of course. However it is unlikely that officer will object to this treatment of accounting to the entry but yes, you should have reason and/or evidences for change in the treatment.
Loan was through bank but the party was going abroad and the firm was not having enough funds so it asked the firm to perform work contract in lieu of loan
The loan was through bank but the party is now leaving India wanting the firm to perform a work contract for it in lieu of the unsecured loan it had taken