Thanks to module storage, you can easily buy yourself a whole bunch of stock before leaving - as long as you have the cash.
Keep an eye on that credit balance if you're not rich.. I recently nearly bankrupted myself buying a whole fleet's worth of prismatics before leaving LSP. Didn't even buy any size 8s, those things are expensive

got a size 7 in preparation for a future corvette though.