Yes, if the company holds the rights, and the company signs. Most businesses that build software accumulate far more of it than they sell: internal systems, retired products, utilities, integrations and old versions of current products. All of it can be licensed to AI labs.
You keep the software and full use of it. Licensing a copy for training does not stop you selling the product, running it or rewriting it. The code stays private, and only a scrubbed review copy reaches buyers.
What about software we still sell?
It qualifies too. Licenses are non-exclusive and cover a copy used for training, so you keep selling, supporting and updating the product as before. Many companies start with retired versions and internal systems, then add current products once they are comfortable with the terms. You choose repo by repo, and you can withdraw a codebase at any time.
Large software estates tend to hold many repos: the main product, plugins, installers, test harnesses and internal tools. Each one is valued on its own tokens. A single product line can add up to dozens of repos, and each can be licensed more than once.