True best practice is to measure gravity at multiple points of your process. I measure two or three times during mash, at first run, second run, pre-boil, during boil (not always but when I feel I am off target for my desired OG), and then again at post-boil (cooled) for OG.