Yes, Queen wrote and recorded "We Will Rock You."
The stomp-stomp-clap rhythm was conceived for audience participation. The band has performed it at every concert since 1977. No external writers, no "making up" — it's an original Queen composition through and through.