Ask the doctor first.
A lot of the time back pain comes from a weak posterior chain. The gluteus maximus becomes weak and the smaller muscles take over. This is called synergistic dominance.
Here are some simple exercises to try if the doctor gives the thumbs up.