The official website for The Settlers of Catan

Question about Base Game Victory Conditions - What if someone has reached the required number of victory points for a win but is unaware of it? Did this player win anyway?

Answer

Yes. The game ends as soon as a player has reached the required number of victory points on his turn. If he’s unaware of it, you should tell him, because you can’t take an already gained victory away from him.