Hi Jim,
You will need to consider the effects of the cable flexing as the head moves. It will fatigue the connection and the cable over time, so fixing the cable to the head would be good (strain relief).
You will also need to allow enough free cable for the head to reach maximum travel in both directions.
It is more advantages to have the head, connector and cable stationary but it will work OK with the head moving.
Cheers
Phil