Momentum is conserved in any collision or explosion, as long as there are no external forces.
In other words, total momentum before the collision = total momentum after the collision, as long as external forces like friction have not had an effect. Conservation of momentum can be applied to explosions or collisions to calculate the speed of an object before or after the event.