No. Rachel Berry (Lea Michele) wore a wide variety of outfits across six seasons—pants, dresses, jumpsuits, shorts, and skirts. Her wardrobe evolved from preppy schoolgirl looks to edgier young adult styles.
The perception may stem from memorable skirt-heavy ensembles (plaid uniforms, performance costumes), but there was never a costume mandate restricting her to skirts.