At first glance it should “probably work”.
The colours seem to follow the USB standard - red=+5V, black=GND, green=Data+ and white=Data-.\ Not sure why there are two black wires, maybe one’s for the shielding.
To be on the safe side I’d still disconnect the cable and measure from the plug on the photo to the USB plug on the other end.