That's right - so a major triad in C would be (0-4-7), or a B-flat minor triad would be (X-1-5).
It's not required that the pitch notation is absolute though, e.g. you can transpose the numeric notation to any key (e.g., use A == 0 instead of C ==0)