Yes, there are. In some historical educational systems, caning was used as a form of discipline. For instance, in old - fashioned British schools, teachers would cane students for misbehavior. This was seen as a way to maintain order in the classroom.
In certain Asian cultures, caning has been part of the traditional justice system for minor offenses in the past. It was a form of punishment that was supposed to deter people from repeating wrongdoings. However, over time, as values have changed, these practices have been mostly phased out due to concerns about human rights and more progressive views on punishment.
There are historical references in military contexts too. Caning was sometimes used as a form of military discipline. But as the understanding of human rights and more humane ways of dealing with discipline evolved, such practices became less common. These historical uses of caning were mainly about maintaining order and discipline, not related to any inappropriate or erotic concepts.