Answer: Neutrons and protons, both nucleons, are affected by the nuclear force
identically.
Since protons have charge +1 e, they experience an electric force that tends to push them apart, but at short range the attractive nuclear force is strong enough to overcome the electromagnetic force.