Generally, no, a juvenile sex offender cannot attend the local public school.
A conviction on second degree criminal sexual conduct charges results in an immediate and often permanent expulsion from the school district. Convicted juveniles may petition for reinstatement after 150 days, with possible reinstatement after 180 days, but reinstatement is dependent on many factors, including the risk of harm posed to other students with the juvenile's attendance in the school, the school's liability in having the juvenile return to the school, the ages of the parties involved in the criminal action, the previous school record of the juvenile, etc.
An alternate educational program may be available, although the student usually must be kept physically separated at all times from the general student population, or home schooling may be available to a student convicted of criminal sexual conduct in the second degree.
Juvenile sex offenders are not reported on any Public Sex Offender Registry until after the student turns age 18.
See Michigan's Revised School Code, §380.1311, and Michigan's Penal Code, §750.520c, for additional information.