Not really. Assuming that spaceships a century or so down the road are built to withstand direct sunlight from a star slightly larger than our own, shouldn't really be a problem. See, it's not filtered out by an atmosphere at all, and when you're dealing with something as utterly lethal as gamma radiation, you don't **** around and not make the shielding several times stronger than it would need to be under normal circumstances. That'd be like saying that, under normal operation, your car wouldn't need to hold up to much more damage than a stray piece of gravel would make, so it's okay to build the frame out of paper mache.
Now, if you could get the nukes to penetrate the hull before detonating, you'd have something going. Given the limited atmosphere of the inside of a ship, there'd be enough for a good-sized fireball and a nasty shockwave that would utterly wipe the inside of the ship but wouldn't do too much damage to anything outside of it, assuming there's enough armor to withstand **** like plasma and hundred-terawatt laser beams- it would largely hold the explosion in. Try that instead, why not.