Generally no. Marlin doesn't generally change anything unless you tell it to. More likely it's a short in the wiring.
One thing that may be able to help is if you're running Marlin, you can use M119 to look at what's going on with the endstops and make sure they are working. You may need to plug a computer in to see the results.

https://marlinfw.org/docs/gcode/M119.html