Correct, because the NPT was born with a loophole. Even if a country agrees to broad ranging IAEA inspections, it can legally accumulate enriched uranium (or reprocessed plutonium) under the guise of a peaceful energy program, and then suddenly declare that circumstances have changed and withdraw from the treaty - with the ability to produce nuclear weapons on short notice.