No. Gerard Butler (Scottish, b. 1969) has never appeared in the BBC soap EastEnders. His career began in mid-1990s Scottish theatre/TV (Mrs. Brown, Lucy Sullivan Is Getting Married) before breaking into Hollywood with Dracula 2000 (2000) and 300 (2006).
You might be confusing him with a British actor or a guest star from a similar era.