Gravitational Interaction with a Rogue Planet

There are been two ideas that invoke massive objects careening through KB.
But can this work in principle?

....................................................................... ...................................................................