Yup, I always splice the wires and pair it up with a compatable AC adapter. Make sure you properly segregate the wires with caps or tape etc.