No.
Investments in a qualified retirement account like a 401(k) or IRA are not subject to capital-gains treatment. They have no capital cost basis.