Yes, it is possible. Though I don't know how because I don't understand what do you mean.
But it's possible.
(If I'm not mistaken, you mean making an item use some kind of charges, something like, you make a character save up energy in some way -defending, being attacked, etc-, this makes him gain one charge point, and so on and so forth. Then there is a potion that uses these points to make a certain effect, i.e. 1 charge = 200hp recovered, 3 charges = 600hp recovered).