Yes - but the commonness of using it as a punishment for children is something I think we picked up from America. I was never grounded for example, but not because I was particularly obedient.
The origin of the term, however - which shows where the term came from - is, I think, British - in the RAF a pilot who had misbehaved would be grounded (given duties on the ground, and not allowed to fly).
Students at residential places of study (universities, but also boarding schools) have a similar restriction placed on them, but in a 'two-dimensional' sense: they are 'gated'.
Student or Learner