Does stretching before or after exercise prevent injuries and soreness?

No, despite what many coaches still say. A review of more than 350 studies published over the last 40 years concludes that stretching prior to exercise doesn’t prevent injury in competitive or recreational athletes.