Given modern computer consumer hardware, I don’t see why they couldn’t even have built implosion lens based fission devices without testing. DPRK would probably provide them with all the data they needed for the simulations.
Iran has been a few weeks from having a few bombs for the last 30 years because they decided not to build it.