S&P 500, Dow Jones: Can Stock Markets Predict Presidential Elections?

Does S&P 500 and Dow Jones Industrial Average performance 3 months or 1 year before a US presidential election impact its outcome?