You can and probably should identity where the wires go. Disconnect one and try each light to see if they work. Repeat until you have identified what each wire does. Put a VOM and determine which wires are pos and which are neg. Label everything or make a drawing or both.