Does the phrase pin money have anything to do with actual pins?

In its earliest use, the phrase pin money did mean the money to buy pins, the primary fasteners for clothing before buttons and zippers were invented.

But by the sixteenth century, the phrase came to mean the money used for incidentals.