No, 401k losses cannot be used to offset gains in other retirement accounts. They can only be used to offset gains in non-retirement investment accounts.