Yes, in return for giving it's nuclear weapons to Russia Ukraine was provided with economic aid (AKA money) plus security assurances from Russia thye would never invade, and security assurances from the USA and UK which is where it gets murky.couple of silly questions please,
did Ukraine get any money back for returning
all? of their Nukes?
According to Ukraine they were promised assistance from the USA/UK if Russia ever attacked them or threatened them with nuclear weapons. According the the USA/UK the promise was only to help if Russia attacked or threatened them with nuclear weapons. According to the wording of the text everyone signed, it's clear something was lost in translation, if read literally it doesn't make that much sense but it is closer to what the USA/UK maintain the agreement was supposed to be, however one additional comma would change it to what Ukraine claim it was supposed to say.
One comical point is that Russia's Sergei Lavrov agreed/signed it on behalf of the Russian Federation (Yeah he's been around a while) so he could easily verify Ukraine's claim but obviously isn't about too xD
NB: it wasn't just the 1700 nukes Ukraine gave up (yes 1700, they were the third largest nuclear power at the time) it was their hundreds of nuclear capable bombers and the dismantling of their nuclear weapons design/production facilities/infrastructure (they actually designed/built some of the USSR's best ICBMs).
NB2: If they hadn't given them up it wouldn't have helped them, the USSR withdrew its short/medium range launchers from Ukraine before the collapse, and all the ones they gave up in the 90s were too long range to actually hit Russia with.