Is it worth paying off a loan early?

Paying off a loan early cuts the interest you pay in total. Whether it is worth doing depends on two things: any fee the lender charges for early settlement, and the interest you would still pay if you kept the loan.
Check the loan agreement first
Look for an early settlement or prepayment fee. Some lenders charge a percentage of the remaining balance; others charge a flat fee. Some charge nothing.
Compare the fee with the saving
Work out the interest you would still pay over the remaining term. If that is larger than the fee, paying early saves money.
Example: A remaining balance of 500,000 at 18% with 24 months left. The interest left to pay is about 99,200. If the early settlement fee is 2% of the balance, that is 10,000. Paying early saves about 89,200 (99,200 minus the 10,000 fee), before any return you would have earned on the money used to pay off the loan.
Timing matters
In the early years, most of each payment goes to interest, so an early payoff saves the most. Near the end of the term, there is little interest left to save.
Pay off other debt first
If you have a credit card balance at a higher rate, clear that first. Keep a small emergency fund so you do not borrow again.
Related: Debt snowball vs debt avalanche and How to calculate loan EMI.
Next step: Look at your loan statement for the remaining balance, the interest rate, and the early settlement fee, then compare the numbers.