Yes, you can. There are certain circumstances when you might want to bite the bullet and pay an early exit fee to remortgage in the middle of a fixed rate deal.
To immediately sell a property and pay off the mortgage in full
To take advantage of a much better mortgage deal
To release equity in your home at short notice, etc
In all situations, it’s important to consider what the exit fee will cost as it’s usually a percentage of the remaining loan amount (which can work out to be a lot!) If in doubt, seek advice from an independent financial adviser.