What they are not free to do is sign, receive the foreign (civilian) nuclear help to which signing entitles them, and then try to build a bomb secretly.
It is now ruefully accepted, is what Iraq tried to do, and may still be trying to do.