Radio and X-ray observations of shocks in young supernova remnants (SNRs) reveal electron acceleration to non-thermal, ultra-relativistic energies (~ 10-100 TeV). This acceleration is usually assumed to happen via the diffusive shock acceleration (DSA) mechanism. However, the way in which electrons are initially energized or 'injected' into this acceleration process is an open question and the main focus of this work. We present our study of electron acceleration in nonrelativistic shocks using 2D and 3D particle-in-cell (PIC) plasma simulations. Our simulations show that significant non-thermal acceleration happens due to the growth of oblique whistler waves in the foot of quasi-perpendicular shocks. The obtained electron energy distributions show power law tails with spectral indices up to α ~ 3-4. Also, the maximum energies of the accelerated particles are consistent with the electron Larmor radii being comparable to that of the ions, indicating potential injection into the subsequent DSA process. This injection mechanism requires the shock waves to have fairly low Alfvénic Mach numbers, MA <20, which is consistent with the theoretical conditions for the growth of whistler waves in the shock foot (MA <(mi/me)1/2). Thus, if this mechanism is the only robust electron injection process at work in SNR shocks, then SNRs that display non-thermal emission must have significantly amplified upstream magnetic fields. Such field amplification is likely achieved by accelerated ions in these environments, so electron and ion acceleration in SNR shocks must be interconnected.