Yup! That'll work, but your right you would need a cord to power the transformer, then another for the socket, the socket itself, then the bulb. B.T.W....if ya wanna be safe, go no smaller than a wire size of 14 gauge. I have 12 gauge wire powering mine, but thats a little overkill.