After the grains are added is when pH is really important.
Depending on how detailed your recipe/water/grain analysis is, checking the pH beforehand may be advantageous as well.
You may also want to check the pH during the sparge to make sure it isn't rising above your target pH.