No, the world will not end right away, since you can still try to destroy and take over the Wonders from your enemies. Furthermore, there is still the chance to take possession of all 7 Wonders and become the "Master of the World".
The countdown to close a world will only start when there are less then 300 active players on the world.