I did something similar shortly before the ship changes. I took one of the non-upgradeable officers who I didn’t use until I had filled all the officer slots and I did end up cashing in the heirlooms when the guns I bought wouldn’t transfer to the Merchant Vessel so that I could buy one of the war ships. Of course you have an expensive house and the possibility of using the heirlooms when you do it that way.