that depends on what you are talking about. Most school districts will allow former students to continue at their school. So in that case, yes I guess it would be "legal" anyway, I don't think that there is a specific law making it illegal in any case. Possibly against district or school policy, but illegal?