Short answer: Yes
Long answer: What else is going on? What caused the hamstring to get overloaded in the first place? If it wasn't a freak occurence, then make sure the root of the problem is fixed. Make sure the hip ERs are moving as they should. You could still have some residual swelling/adhesion in the area from the strain that needs to be worked out. Foam rolling, stretching and mobility work are important, and if it's still bothering you, find someone to work the soft tissue for you (ART, Graston, SASTM, etc). Make sure you bring the strength back up so you don't overload it again.