It depends on which glands/areas are swollen.
Glands may only be swollen temporarily from infection. Tonsils can become swollen and can be removed, but other criteria have to be met for this. It is also agreed upon by doctors that tonsils provide benefits to the immune system. A visit to your doctor will likely determine what is swollen and what the best course is.