Yes, 0 is the current candle, 1 is the previous candle and so on... 2, 3, 4, 5....
Negative values can also be used to get values that visually appear "in the future" from some indicators like Ichimoku.