Absolutely, dog, on the giving berries away.
Given that the spell produces 2d4 berries a day and the berries last 1 day/level (at least under 3.0; I've not looked it up recently), bookkeeping can get complicated around levels 3-6, when the berries hit the prime of their usefulness. I found myself casting about 2 goodberry spells every day and passing the berries around until every PC had 8 berries (the maximum you can benefit from per day). On days of rest, I'd prepare as many goodberry spells as necessary to get everyone up to their max with fresh berries.
In order to make bookkeeping easier, I persuaded my DM to let each spell produce the average -- 5 berries instead of 2d4. I then just kept an index card listing who had what batch of berries, and how old they were; we'd redistribute whenever someone's berries were growing especially old or got eaten.
It's one of the few spells that you can cast on days off to benefit yourself on adventuring days, and is very nice for that reason. What's more, if you're the primary healer in the party, it makes the game more fun for you by freeing you up in the middle of battle: now, instead of using most rounds to heal your wounded companions, you can give them the berries ahead of time and get them to heal themselves.
Two things to check on with your DM:
1) The spell doesn't specify that the berries need to be a variety that is normally edible; this is significant for determining whether you can cast goodberries in the middle of winter, on holly berries, mistletoe berries, etc. If your DM balks at allowing goodberries to be made from nastyberries, suggest a compromise: maybe the spell can be cast on any small edible wild plant, including berries, nuts, or mushrooms (yeah, I know mushrooms aren't plants, shut up).
2) The spell doesn't say what sort of action eating a goodberry is, and in a super-duper-rules-heavy-game like D&D, this is an important question. In keeping with other types of actions, we've always ruled it as a standard action that provokes AoOs to eat any quantity of goodberries, and a MEA, no AoO, to grab any quantity of them from a pouch. So in the middle of battle, you can move back 5', pull out 5 goodberries, and chow down on them in a single round.
Get DM answers to both these questions, and enjoy the spell!
Daniel