My High School had a prayer at the flagpole every morning.
What you cannot have, and what I agree is undesirable and Unconstitutional, is a government agent or policy (such as a school teacher) leading the little children to what they consider the ‘right’ or ‘proper’ religions or prayers.