Pretty much, yes. Take a look at the history of the South African nuclear program for a concrete example
(Oh, and consider this: you still need hardware to run your “weapon” on. So there’s another avenue to get the boot thrust upon you.)
Or of course all of this could stop, but then the shareholder value would be lost and a lot of CEOs would be very angry, so that can’t happen.