Dating back 10-15 years, that premise was exactly what drove the enterprise shift away from a Microsoft stack (.Net + SQL Server + Windows Server) to a LAMP stack (where the L-A-M-P were each substitutable by various OSS options). It required a lot of reskilling in the enterprise, but after everyone was up to speed on the fundamentals of the new architectures and comfortable programming in Java/Python/Javascript/PHP it made learning all the newer things to come even easier. It also set the stage for companies like Canonical and Redhat to create viable commercial businesses wrapping FOSS software in enterprise support.
Where we are now is on the cusp of starting another of these lock-in rejection cycles, but where the lock-in isn't at the OS or devtools layers, but at the data/analytics layer and with IaaS or PaaS having become unreasonably expensive alternatives to on-prem data centers [for many enterprises].
It'll be interesting to see how things evolve for Snowflake & Databricks (as well as Pega, C3AI, and similar), and whether CIOs start placing bets on their own team creating their own solutions using FOSS tooling on-prem, leaving public cloud as the domain of things like ERP & whatever SaaS business software they license.