That is correct for alpha decay. But a number of other factors come into play with beta decays.
First, because neutrons and protons have different quantum numbers, they each have their own 'shells' into which they can stack up. Second, the strong force binds protons and neutrons equally, whereas the electromagnetic replusion is between protons only. Third, the neutron is itself unstable because it is about 1MeV heavier than the proton, due to d quarks being slightly heavier than u quarks. Free neutrons beta-decay to protons with a half-life of about 10 minutes.
One way of understanding the behaviour of the weak force within nuclei is to consider the possible states of a given isobar, ie a 'bag' of N nucleons. Assuming for the moment that N is below the threshold at which alpha decays start to occur, then we can consider our isobar as a bound system in which each nucleon can be either a proton or a neutron. Within that range of possible states, there will be a ground state with the lowest energy. The other states have higher energy so can potentially decay into the ground state subject to some simple criteria.
Consider for example an isobar of 3 nucleons. The ground state for this is the 2He3 isotope, with two protons and one neutron. A commonly encountered higher energy state is tritium, which instead has one proton and two neutrons. In this case, the difference in energy between tritium and 2He3 exceeds the combined rest energies of an electron and an antineutrino, so there is sufficient delta-energy available for tritium to beta-decay into 2He3, which it does with a half-life of the order of ten years.
The other two theoretically possible states for this isobar are three neutrons and three protons. These are only ever observed as fleeting resonances, if at all. The reason for this is that the third proton or neutron has to occupy a higher energy level than the first two, because the lowest-energy shell for that particle type is already filled with one spin-up and one spin-down particle.
If an isobar has a non-ground state whose energy level differs from that of the ground state by less than the rest energy of an electron, this state is also stable because there's insufficient energy to create the particles needed to decay to the ground state. Such a state would, however, be a candidate for beta decay via neutrino capture, if the incoming neutrino supplies the extra energy needed to produce the required electron/positron in addition to the ground state of the isobar.
Note also that in isobar ground states the neutrons are perfectly stable, despite the fact that free ones are not. This is because it is the total energy of the system that is crucial here, not the rest masses of the free component particles.