No worries!
GDP can be measured in multiple ways. Theoretically they should give us the same value each year, but data in the real world is messy so they differ slightly.
However, in answer to your question, yes, government spending is part of GDP.
More here:
en.wikipedia.org/wiki/Gross_d...