Yes, it is difficult, but possible.
Here's quick and dirty analysis - consider Sears, Walmart, and Amazon:
- Amazon pays its engineers near top of market - $1.5T market cap.
- Walmart has a pretty good engineering culture. They acquired a tech company to start Walmart Labs for data science stuff and they even have popular open source software (Hapi.js) - they're the largest company by revenue and $370B market cap.
- Ever been to Sears.com? Me neither - largest retailer in 1980 to bankrupt in 2018, stock price at $0.23 and $94M market cap.
I deduce that investment in software engineers == higher stock price.