If the motion is generated by passing close to a binary black hole pair and being sling shot away, if the planets were still in orbit around their stars, they would likely be in very perturbed orbits. Also, the nearby passage of a black hole is probably not something that life would survive due to radiation.