Will I be removed from groups on WhatsApp if I upgrade to a new phone?
You retain your groups if you have the same number.

Off-topic, you may also want to check the official documentation on how to back-up and restore your chat history to the new phone.