yes, the Shelly 1pm can run on DC, it just depends what you're switching on and off ? If it's a other circuit then the Shelly 1 will be the better option
I linked the knowledge base for more information
https://kb.shelly.cloud/knowledge-base/shelly-plus-1pm