If one sells stock but does not deposit proceeds into a personal (bank) account but keeps in an investing act., does that still count as income in regard to filing taxes?

Proceeds stay as cash in an investment account. Ultimately, I'm seeing if I need to file a Schedule K-1 or not.