End of life operating systems

Hi,
my Jenkins controller is installed on a VM running CentOS7 and I received the CentOS7 EOL warning.

In the next few weeks I plan to migrate the installation to RHEL8, however I have a concern:
I have several agents connected to the controller, some of them running CentOS7.
If I upgrade the controller to RHEL8 will the CentOS7 agents still continue to work or will I necessarily have to migrate them to RHEL8 as well?

This question is very important because in some pipelines, unfortunately, we still have a requirement to use Java 7 which is not supported by RHEL8.

I would like to understand if this issue will force us to stay stuck with version 2.414.3 until these projects are migrated to a newer Java version.