I would agree that consulting your doctor is the best option. In my case, since I have a sciatica, if I pull a muscle in my lower back, which I did about a month ago, I know I'm done for about a week. I know what stretches I can do, but exercise is not really a part of that other than humbling around in pain. It took me over a minute and a half to simply reach my hands to my toes, crawling down my leg.
I know what I can and can't do, because I have previously spoken to my doctor about my situation and that is exactly what you should do.