Obviously, it wasn't news 5 years ago, so no it wasn't then.
There is a gray area which is where professional investors who have an informational advantage make their money. But by the time something is mainstream news, that gray area is long gone.
There's a sort of midwit meme here where the naive take "oh this company is going to sell more next year, i should by stock at whatever price", -> "no, everything's already priced in" -> "if everything was priced in, you'd see a historic price graph as a straight line with a slope of interest rates"
Obviously some did and they made a lot of money. So what? The market as a whole didn't.
> There's a sort of midwit
If the company grows by as much as it is expected to grow barring any external factors then yes, your "meme" certainly makes sense.
It wasn't priced in 5 years ago, that is the point today it is priced it, people expected this. You should have bought when Microsoft invested billions in them 2019, today more investments like this are expected once these investments stop NVIDIA stock will drop since they were expected.
So saying now is the time to invest is dead wrong, NVIDIA is currently priced as if these investments will continue to ramp up so these things are already priced in. Only idiots thinks "positive event -> I must buy stocks!", no if the positive event was expected then the stocks wont move, if a positive event was expected but didn't happen then stocks go down, that is the situation we are in currently with NVIDIA.
How do you know it was priced in? You look at what people say they expect, and this is what people say they expected, hence we know it was priced in.
https://news.ycombinator.com/item?id=15678587
https://news.ycombinator.com/item?id=34881881
It was "obvious" C3.AI was not a real AI company worth much. The market still "priced in" at $18 billion for months: https://finance.yahoo.com/quote/AI/
When AMD launched the Zen architecture, everyone said they were on the up-and-up, and the market gave them a boost. The company's shares only started to climb much higher later on, when there were irrefutable revenue numbers. There was plenty of time to buy and make money. Someone with the domain knowledge like us can definitely have an edge in the market because we understand the product well enough to formulate better odds, then we can profit off the difference between our odds and the market's odds.