Yes, in most cases, you should be able to pay off your loan early. But you might be charged a fee to do so.
Many loans come with an early settlement charge baked into them. This is a fee you agree to pay to cut your borrowing term short. It varies from provider to provider, but the earlier into your term you end your loan, the higher it’s likely to be.
In some cases, it can actually be cheaper to allow your loan to run its course and end naturally, rather than paying this early exit fee to end it early.
This is why it’s important to consider whether you may be better suited to other borrowing options before you commit to taking out a loan. Things like credit cards may be better for short term borrowing, for example.