Yes, that is correct. u is the unit vector pointing in the given direction.

However, there aretwoanswers to this problem: just a line does not define a "direction". There are two unit vectors pointing along the "along" this line in opposite directions. The derivative in one direction is the negative of the derivative in the opposite direction.