Scholars differ on this question. One view says yes, because the market value of a share may partly reflect the company’s total assets and income, including a small impermissible element.
Another view says purification is not required on capital gain because no identifiable portion of the sale price can be specifically assigned to the company’s interest income.