No - imagine if you had bought 100% of Apple shares for $1 at incorporation, and then sold 1 share for $207. That would make the market cap $1T and the total investment would be only $208.
It's more that the investments into Apple + the amount of money made by shareholders equals $1T.