In a word, yes.
However, I would eco TJC's point that if it's at all unclear on which wires are which at the machine side, (or you're unclear on which lines go to which pins because it's a second hand machine and the phases have been deliberately rotated by a previous owner), then you'll need...