It should have the same wiring connections and will have the same temperature specifications. It might have different physical mounting, different knob shaft length and the knob orientation on the shaft, resulting in the knob pointing in the wrong direction at the various settings.
Measure the shaft lengths and check how each mounts. If those are ok, it should work. If the knob points in an incorrect direction, you might be able to use the other oven's knob as well.
BTW. The thermostat's sensor bulb that goes into the oven cavity is a tube and not a wire. You can bend it but if you crimp it, it will not sense the oven temperature and be rendered useless. Be careful of it during service.
View attachment 71716