Throughout history, investors who bought during stock market declines while maintaining a long-term outlook yielded strong returns.