There were many government employees in Brazil who'd bought real estate in Brasília (the country's new-ish capital) with significant mortgages at reasonable fixed or quasi-fixed interest rates before the inflationary 1980's. After many years of 100% or 600% inflation in the 1980's, were left paying the equivalent of US$50 per month mortgage for awesome apartments.
I.e. people who loan money are not stupid, and you're not getting any bargain because of inflation.
My mortgages are all using a fixed repayment plan, where the interest rate, payments, and repayment duration are fixed on day one. If the inflation rate doubled or halved next year, my loan terms won't change and I'd end up repaying less or more money, relatively.
Many other loan rate, such as margin interest, are "prime rate plus X". The prime rate is inflation plus a constant.
Again, the people loaning out the money are not fools about inflation.
Yes, it's still good. It still decreases the real value of your principal. Deflation does the opposite.