Yes, you can repay your mortgage early, subject to an early repayment fee. This is set by the Bank of Portugal. You'll pay 0.5% for a variable rate mortgage and 2% for a fixed rate one.