As children, we are born basically a blank slate. We are self-aware only in the basic definition that we realize that we exist and are not inanimate, unthinking objects. Everything else is learned. Children do not understand the concept of 'right' or 'wrong', only behavior that will get them into trouble and behavior that will not. The only reason we, as adults, have any refined sense of right or wrong is from a lifetime of learned behavior and informed opinions on this behavior and it's results. If a child never got into trouble, it would never learn any of this basic information that we take for granted because we did get into trouble and learn from those experiences when we were children.
Part of being a child is learning the difference between acceptable and unacceptable behaviour. Without those lessons you just can't function as an adult in society. Kids need to test the limits and consequences need to be imposed in order for them to learn these lessons to any degree of success.
I believe that getting into trouble is an inevitable part of life as a whole. Perhaps we are prone to make more mistakes as a child, but that is only because we cannot learn to do the right thing without making mistakes, which ultimately land us into trouble.
So, getting into trouble during childhood- definitely inevitable, not definitely bad.