Some DCC decoders will detect when they are being run on DC, and adapt automatically.
Some will even provide speed-related engine sound, and effects such as bells and whistles when track polarity is quickly flipped, and brake sounds under rapid deceleration.