No, it does not violate the principle of conservation of momentum. In the photon-electron collision, the energy and momentum are conserved.