That is correct, for A to advance, B must possess the ball thus ending the kick. If B doesn't possess the ball, the kick continues and A cannot advance a kick. Once B possesses the ball, the kick ends and a running play begins (why it is important to bag the end of the kick, and not where B touches the kick) after that point if B loses possession, it is like any other running play and A can advance.