That is an extremely unlikely scenario because both intelligent life forms would have had to evolve before either of them developed space flight. It took homo sapiens 4 Gyr to evolve in the first place but only 100 kyr to develop space flight after that. So the odds are slim to none.