Membership Site with online currency

Is it possible to create a membership site where members can buy a currency to use on the site? That currency can be used for perks or to unlock things.