Usually the yield increases the more years there are to maturity (I,e, higher interest rates for longer deposits/borrowings).
If there are higher interest rates for short-term deposits/borrowings, then it is possible for the yield to reduce with more years to maturity which would mean an inverted yield curve.