Yes. Sir Ian McKellen played major roles in both franchises:
| Franchise | Role | Films |
|---|---|---|
| Lord of the Rings | Gandalf the Grey / White | Fellowship (2001), Two Towers (2002), Return of the King (2003) |
| Harry Potter | Albus Dumbledore | Prisoner of Azkaban (2004) — replaced Richard Harris; Goblet of Fire (2005), Order of the Phoenix (2007), Half-Blood Prince (2009), Deathly Hallows 1 & 2 (2010–11) |
McKellen declined Dumbledore initially (loyalty to Harris); accepted after Harris's death. Both roles: wise, bearded, morally complex wizards—his definitive screen archetype.