While it is rare for foreign policy differences between the political parties to affect electoral outcomes, it has happened before.
time.com