Correct, but it's people's perception of value that ultimately drives the current stock price.
Take Amazon as an example, in 2016 its net income was $2.4 billion, yet it currently trades at a total market capitalization (the value of all outstanding shares) of $471 billion (or approximately 196x its net income) [0]
Compare that to Ford Motor Company, in 2016 its net income was $4.6 billion, yet it currently trades at a total market capitalization of $45 billion (or approximately 10x its net income) [1]
So Ford was actually MORE profitable than Amazon in 2017, but it's market capitalization is only 10% of Amazon.
So what's driving the differences? People's perception of value. People perceive that Amazon will be more profitable than Ford Motor Company in the future, even though objectively Ford is more profitable than Amazon right now.
[0] Amazon Financials - https://finance.google.com/finance?q=NASDAQ%3AAMZN&fstype=ii...
[1] Ford Financials - https://finance.google.com/finance?q=NYSE%3AF&fstype=ii&ei=z...