If I take an old transformer from an O gauge train set, can I use this as an embedding device?

I'm assuming I can hook up some wired alligator clips to either end of the foundation wire, (wiring deep frames, so both wire ends are on one side,) then turn up the juice to heat the wires. I'll have to test for the best "speed" and time.

Am I correct in the set up to make this work?