No, I apologize. I was wrong. Anyone, even someone who has not been baptized, can perform a valid baptism.
They must baptize with intention and with water, and invoke the Trinity.
https://www.ewtn.com/catholicism/seasons-and-feast-days/who-can-baptize-another-person-21543