Heartbeat Deployment For Uptime

Hi, we've installed the Elastic Agent in our work environment. We're looking to perform port checks and monitor port uptime. Can I configure this functionality with the existing Elastic Agent that we have already deployed on our server, or do I need to separately install Heartbeat along with the Elastic Agent?

From what I understand, if we deploy the Elastic Agent, we don't have to deploy Heartbeat separately; it is packaged with the Elastic Agent by default.