Yes, that is possible.
Please note, however, that this may cause the cable to wear out more quickly.
The extent of cable wear depends primarily on the angle of your ceiling and how often you adjust the height of the light.
You can find more information about cable wear here.
(IB34)