That's not true:
https://www.fool.com/investing/2017/04/14/okta-inc-ipo-what-....
If you're using GAAP, you have to include stock-based compensation as a cost. There are, however, a lot of tech companies that try and spin non-GAAP earnings by removing stock-based compensation, which can paint a very different picture (e.g., Salesforce)