Yes. You can repay your loan at any time. Interest is only charged for the period the loan is outstanding, so repaying early may reduce the total cost.