It's possible depending on the product and contract, but don't assume that all profits for the remaining term are automatically forfeited.
Request the early repayment amount in writing and understand the discount/waiver, fees, and guarantee release.
The figures, fees and limits in this answer vary by bank and change over time — confirm them with your bank or the official source before acting.