Both have their place. A moral society fosters moral character, which is expressed in laws which and help keep a society moral by deterring those who act contrary. The more who do the latter, then the more deterrent is required, but not as a substitute for the formation of moral character.
The more children lack self-control, the more rules are made and enforced. The disorderly Corinthians required more discipline, while promoting maturity. The former reflect the later.
I would go one step further and not allow children under the age of 16 to have a tablet, computer or a phone, except for a basic phone that allows the child to make phone calls.