No, it doesn't. Pension income is treated in the same way as investment income; it doesn't count as earnings. Only earnings such as salary, wages bonus, overtime, commission or self-employed earnings count.
See the ‘Earnings that attract tax relief’ section of this page of the HMRC's Pensions Tax Manual.