Prior to pitching?
My son will do some generic warm up, not static stretching but some full body movements, butt kickers, karaokies ect.
He will jog a couple of poles. He will then do arm circles, do a J-band routine, wrist weight routine, some plyocare throws (various exercises) until he feels loose and ready, then long toss before he heads to the pen to warm up.
So, my answer is there is a lot of different stuff you can do.
There are a lot of variables of course. If you are just jogging for a bit and doing some static stretches that is better than nothing, but just.
It is a matter of personal need and preference I think.