yes. The dm can do whatever they want. But goodberry restrictions are a popular thing for dms to customize. It is possible for a 1st level druid to heal people nearly 100 points with berries alone, so don't feel bad if the dm caps it.