M,
Robots operate off of low voltage DC, so there is nothing 'unsafe' due to the cable..
But... Water might then be able to make its way down the inside of the cable into the motor box connector.. Again, nothing unsafe, it just might corrode the pins at the end of the connector.
Thanks,
Jim R.