No, the electrons do not affect the stability on the nucleus.
Both protons and neutrons are in same place (the nucleus). Electrons are not in the nucleus.
The stability of the nucleus depends instead on the relative numbers of protons and neutrons.
if there are too many or too few neutrons for a given number of protons, or if the nucleus is just too big,the nucleus becomes unstable.