Hi Vijay,
This should be okay, the agents will perform as it was in the previous state.Just make sure all the required pre-reqs are still in place and comms with Azure is available. The agents will function after the upgrade no issues.
If you have issues you can reinstall the agent and follow the standard process of the configuration.