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

Asked by for the 1998 Land Rover Discovery
1 answer
should be good as long as the connectors plug into each other