Yes, if you change your number you will lose all your chat history, but if you use the Change Number feature it will become easy to migrate to the new number without losing your WhatsApp data and chat history.