rehab exercises

I was wondering how strengthining and light jogging exercises affect a hamstring injury.(tendonitis) does it speed up recovery time and if so, how?