Hose/wire?

Is it possible to set up the beginning and ending point as the control points of the cylinder/hose/wire?
Moving the control points over the surface the wire bends accordingly.

Similar to>

This might be similar to what you are looking for:

Thank you.