Protons do not move out of the nucleus of atoms although they repel each other.
Remember that protons are particles with positive charge and they held together in the nucleus of the atom which is a tiny tiny region. As you know, like charges repel each other, which means that the protons exert a repulsion force.