Ideally you want to take the reading before pitching. But if you take it after it's not a big deal.
The most likely reason for the disparity in your readings is that you hadn't mixed the wort thoroughly enough for the first reading. Stirring in the yeast (which I assume you did) gave you what was most likely the proper reading.
Congrats on the first batch!