Could be, wwh, but MW Unabridged does not mention this type of movement. Perhaps the OED has a more thorough examination of 'gandy dancer's' derivation.