Yes, you can repay a  loan early, which will terminate your loan before the end date. Paying off the loan before the agreed term may reduce the total interest you pay.