No. Mel Gibson did not appear on screen in The Passion of the Christ (2004). He served exclusively as the director, co-writer, and producer.
An urban legend persists that he played the Roman soldier who drives the nails into Jesus's hands, but that role was performed by an Italian stuntman/actor. Gibson's only "appearance" is a brief, uncredited silhouette in the "carrying the cross" sequence, often mistaken for a cameo.