Since I was interested in knowing that too since yesterday, others might be aswell.
I was not sure if my doubloons would get removed without getting the ship or if the client simply won't let me buy it, so I tried it. You hear the "Purchase successful" sound, but you get a message that the transaction was failed. Sad.