Nah because you're fundamentally misunderstanding what "investing 1 million" would mean after a stock splits happens.
I do this shit for a living lol
Also profit doesn't directly translate to a higher stock price, as there are various other aspects (rational and not rational) that can move a stock up or down.
Here's an example, using your invested a million starting point, for simplicity we'll say we bought in 1 share for $1 so we have 1m shares.
Price rises to $2, our position is now worth 2m, simple.
Stock does a 1:4 split, we now have 4m shares with a purchase price adjusted to $0.25 that is now trading at only $0.50 but our position is still worth $2m
Stock moves back up to $2 after some time, our position is now worth $8m
Another stock split 1:2 this time, putting us at 8m shares and stock price is back at $1, still $8m position.
Stock moves back up to $2 after some time, our position is now at $16m
On a chart it won't look like the stock has increased all that much, yes they do get adjusted for splits as you mentioned but that alone still doesn't really speak to how stock splits effect your gain/loss when held since they continue to grow at a faster rate, higher shares outstanding generally means harder stock price to move since it effects the market cap so much more.