Maybe, if it is indeed the switch triggering the alarm.
If not, it could be any number of issues causing the alarm. This is why you need a diagnostic tool to verify exactly what is causing the fault. Otherwise you're just guessing, and that gets expensive quickly
Seeing as how both motors...