No Matthew in Chapter 16 verse 18 was quoting Jesus telling Peter that he's new name is Peter (meaning rock) and upon him He would build His church and that he'll would never prevail against it. The Church is the bride of Christ and the tabernacle of His body on earth.
Peter wasn't an author of any gospel. He was the first pope though so quite special in a different way than Matthew.