While you are allowed to cancel a loan before signing the loan agreement, there is no way to give the loan amount back once it has been deposited into your designated bank account.
The best option is to pay back the loan in full before the maturity date.