Sure, it's enough to make you Very Wealthy Indeed, and since you need have no scruples about the pirates' having rights to it, but that's not the only thing that could do that. In reality, of course, the pirates spent it as fast as they could get their hands on it, on food, sails, rope, weaponry, etc. when they needed to, and booze and ladies of the evening what exceeded their needs -- planning for "a short life and a merry one" does not induce men to save for old age. You could probably do something with an unscrupulous and miserly merchant who traded with them. . . .
But they did not hoard gold like a dragon. And a dragon would never go pirating and leave its hoard all unguarded. The character motivations are too antithetical.
Probably just an excuse to have piratical themes without coming to grip with what monsters pirates were (and are) -- hostis humani generis indeed.