You should be able to if you add a current limiting resistor. On my staging yard control panels I am using the DCC signal to light LED's indicating track selection. Link below to a blog post I made on this. https://palisadecanyonrr.blogspot.com/2015/10/powering-panel-leds-from-dcc-signal.html