No. It should be unacceptable to harass students or teachers. If he violated the school dress code, then he should be spoken to privately by the school administration, but not subject to harassment. If parents don't like the dress code, then they may try to have that changed, but don't harass...