They know it, so attempts at major legislation have tended to crowd in the first two years hence stock returns on average have been more variable then. (For US stocks, but the pattern largely holds for global stocks.) There have been plenty of big double-digit positive years in years one and two, but the variability drags down the averages to 8% and 9% respectively.
FORBES: What a Hotly Contested Election Means for Markets