Male flutists and piccoloists are a standard, valued presence in marching bands at every level—high school, college (including DCI drum corps), and professional ensembles. Gender does not determine instrument suitability.
Historically, the flute's ancestor—the fife—was a military instrument played almost exclusively by men. Today, flute sections are typically mixed-gender, with participation driven by musical interest, skill, and ensemble needs. Many of the world's top orchestral flutists are men (e.g., James Galway, Emmanuel Pahud), and that excellence translates directly to the marching field.
If you're a male considering flute or piccolo in marching band: you're in excellent company. Play what calls to you.