Not necessarily. It's not proven to help prevent injury, curb muscle soreness after exercise, or improve your performance. Static stretching before exercise can weaken performance, such as sprint speed, in studies. You should warm up by doing dynamic stretches, which are like your workout but at a lower intensity.
Hope this helped :D
~Melis