Exactly that ^^
I'd just add a couple of things to make it really clear.
Regarding the
1) You can only purchase data for said system in another system within 20LY radius (well, sphere, really)
2) Be careful at Nav beacons and don't linger. Even at normal ones you can run into a pirate, and if you, by accident, drop into a compromised one with your hold full of cargo, you may find yourself in a very sweat-inducing situation. (and not because of the star's proximity)