Yes, any dual-purpose decoder will sense what power is applied to it, as long as the decoder is programmed for DC.
Tom, I think John's price quote for installs is too high, unless he includes the price of the decoder. I've seen average install rates for labor $50-$75 per. Heck, I've done it gratis for club members.