Yes sir, you can definitely create an RSI indicator in Pine Script.
RSI, or Relative Strength Index, is a momentum indicator that measures the strength of price movements. The commonly used RSI length is 14, with 70 and 30 used as the overbought and oversold reference levels.