The momentum of a system is always conserved, irrespective of the net external force acting on the system.
The total momentum of a system always remain unchanged before and after the collision regardless of the external forces acting on the system.
If no external forces acts on a system of particles then the momentum of the system remains conserved.