Essentially yes. Treasures exist to be sold for money, which you then spend on weapon upgrades.
There is also a completionist incentive: collecting every distinct type of treasure unlocks an achievement or trophy. You do not need them all in your inventory at the same time, so sell freely as you go.