Yes this possible.
For example, assuming a http interface, you could do this with either CloudFront, API Gateway or Application Load Balancer. Just define a route for your polling traffic and route that to your Lambda, then define a route for everything else and route that to your EC2 backend.