Sir Paul McCartney isn't just known for rocking with The Beatles but also starred in several films throughout his career. McCartney starred as himself in the 1964 film A Hard Day's Night alongside his former bandmates, John Lennon, Ringo Starr, and George Harrison. Additionally, the British boy band appeared in Help! and Magical Mystery Tour.
Source:https://www.cbr.com/paul-mccartney-cameo-johnny-depp-favor-pirates-of-the-caribbean/