You mean something like how the wormholes work...except for anything instead of just between wormholes?
If that's what you mean, it might be possible...but I haven't been able to figure it out and honestly haven't spent much time on trying to do so lately...
I know there's a wormhole modifier thing - but I'm not sure it can be used on anything outside of the planet entity file(s).
I think there might be some sort of hard coding that does it for the wormhole planetary systems themselves - but I can't say for sure...I haven't really delved into all of it that much so I can't say it's impossible to do it the "normal" way.