No. Zac Efron did not perform in a high school musical production while attending high school. Instead, he was cast in the Disney Channel Original Movie High School Musical (2006) while still a high school student (attending Arroyo Grande High School, California).
The film's massive success launched his career—blurring the line between his real teenage years and his on-screen musical debut.