Increasing temperature or altitude can make a plane fly less efficiently by decreasing the overall density of air.
The heat wouldn’t make the plane unable to fly, but it could increase the distance the plane needs to lift off and reach a good altitude.
That could be a problem when taking off on a short runway or toward tall obstacles like buildings or mountains.