have problem with wire connection from 02 sensor to the plug on 1998 Land Rover Discovery

The wire on the sensor is BK, red, yellow and white and the plug got loose and the wires have different colores

should be good as long as the connectors plug into each other