120 v to 12 v puck light conversion
What you want to do is fine but, it would all depend on how many puck lights you have and the distance between them. Or for example if the puck lights connect to other puck lights on a different cabinet.  Using a typical 12 Volt electronic transformer may not be ideal because of voltage drop.

Due to how electronic transformers "chop" the sine wave, the frequency on the load side is increased by a factor 400% or more.  A typical puck light transformers load frequency is 28,000 Hertz compared to a magnetic transformer at 50 or 60 Hertz.  

This increase in frequency directly affects the voltage at longer runs.  The higher-end electronic transformers use 24 Volts to help compensate the voltage drop.

When using electronic @ 12 Volts anything over 10' I think should be avoided, especially if multiple lights are involved.