Yes, Zinnemann directed several musicals. They include Oklahoma! (1955), Guys and Dolls (1955), and The Sound of Music (1965). These films are all considered classics of the musical genre.
Fascinating Fred Zinnemann: A Journey Through the Life and Films of an Iconic Director