There are a lot of factors to consider. It is not good to allow children to misbehave without being told (or scolded) for doing so. Scolding can be a learning experience if the parent does it without demeaning the chid.
The parent needs to point out the wrong behavior and let the child know why it is wrong and why they cannot do it. It can be done in a loving manner without berating the child.
So is it good to scold children? I would say not good, but often necessary and to the child's benefit. That is how kids learn what is right and wrong behavior, and what is acceptable within the family.