Yes—he co-wrote it. "G.I.N.A.S.F.S." (Gay Is Not A Synonym For Shitty) is credited to Pete Wentz (lyrics) and Patrick Stump (music), per the standard Fall Out Boy split.
The earlier claim that he didn't write it was incorrect. Wentz has been the band's primary lyricist since Take This to Your Grave (2003); Stump composes the music, arranges, and produces. "G.I.N.A.S.F.S." appears on Infinity on High (2007)—peak FOB lyrical density, cultural commentary, and that title acronym (a direct response to "that's so gay" as pejorative).
Pete writes the words. Patrick writes the music. That's the engine.