Usually, braces will not be removed immediately after the gaps are closed.
Your orthodontist will check that the upper and lower teeth are fitting well and biting evenly, and also take an X-ray to check the position of the roots of your teeth, before making the necessary adjustments.
Hope this answers your question!