North Korea has no dearth of access to nuclear weapons. They get enough raw material from countries other than Canada and the tech they need from China, Pakistan and now Russia. So no, sanctions have not harmed their nuclear programme.
But what they've done is worsen the lot for the layman North Korean.
North Korea was already a nuclear threat decades ago. Where they were lagging behind was in ICBMs that could reach the continental United States.