Yes, using nukes defensively is less bad than using it to start a war. That doesn’t mean I support the use of nukes.
WWII was unique in starting with no nukes and ending with them. We also didn't yet understand the long-term ramifications of the weapon's use.