It would work, it would be somewhat similar to an interp. Whether it’d work for OP - who knows? We don’t know what they’re up to.
It would move from A to B in X seconds, even thought B is moving. It would just speed up or slow down, depending on B getting closer or further from A.