That's how it's done in Mexico all the time. There is a tradition that the poor get to steal electricity by draping a copper hook over a hot wire and running a line - consisting of scrap copper wire and old extension cords, to their tiny little 2-room homes. We talk about code in the USA; in border towns you'd be shocked at what passes for code. The Mexican call the hook a diablito, or "Little Devil."
See some pics below: