The goal of the NK regime is to survive and maintain its rule, not to deliver prosperity for its people. The latter would in fact undermine the former.
So to answer your question, if I were a North Korean dictator who wants to remain North Korean dictator and a dipshit gave me billions of dollars, yes, I would spend it on nukes and not feed my people.