I shocked the pool and thought I had all cleared up but the algae's coming back.

I'll keep shocking until its all gone again but a quick question, I noticed that the ph levels are creeping up, does this matter when you're shocking or should I put some ph down to get it back to normal range?