Sort of. Both quarks and electon-type particles (aka leptons) also participate in the weak interactions (such as β decay). This involves another kind of charge called weak isospin. Particles that 'feel' the weak force can be in one of two states: weak isospin up or weak isospin down. You can think of this as analogous to +ve and -ve electric charges (except that weak isospin comes in half units, ie up = +1/2, down = -1/2). (In fact, the weak isospin also contributes to the particles' electric charges.)
Electrons are weak isospin down. They have lepton counterparts, the neutrinos, which are isospin up.
Protons and neutrons each contain 3 quarks, of two different types (flavours) called up and down. These have weak isospin charges corresponding to their names. The proton has two up quarks and a down; the neutron two downs and an up. When a neutron β-decays to a proton, one of its down quarks changes to an up, reducing its total weak isospin by 1. To balance the books, an electron and an antineutrino are given off, each having weak isospin -1/2.
NB the above is very simplified and I have glossed over some important details, most notably that the weak force only affects left-handed particles. (Right-handed ones all have weak isospins of zero, but carry different numbers for another type of weak charge that results in their carrying the same electric charges as their left-handed counterparts.)