No. A substitute must be confirmed for the exact application. Electrical ratings, heat suitability and mechanical fit can all matter.
What the observation means
A similar switch or thermostat may operate differently. Gas-related components must not be adapted by an owner.
A useful next step
Obtain compatibility evidence through the appropriate repair route and keep the original reference available. Do not modify terminals, mounting holes or capillary arrangements to make a near match fit. A successful initial start does not prove that an improvised substitute is suitable for continued operation.
Manuals and supporting guidance
Model-specific instructions take priority. These references support the practical principles discussed here; they do not diagnose your appliance.