Yes, you can use Vector interpolation (lerp). From A to B. Using an alpha value between 0 and 1.
Alpha==0 will output position A.
Alpha==1 will output position B.
Alpha==0.5 will output the position that is right in the middle between A and B.
You just need to provide as many Alpha values as points you need from that segment.