It is important the whole game. The person that controls the centre can easily switch from side to side in attack and defence.
But the whole board counts. Especially in the endgame free pawns on the flanks can be stonger than free pawns in the centre (but the person controlling the centre still has a better chance of caching the enemy pawns).
Good opening principal entails that players, especially beginners like me, should try to control the center.
My question is, am I supposed to control the center for just the opening or do I keep fighting for the center all through the game?