It will fly surely cause run way & landing gear have supporting role, actually role of air. And it cause of Newton’s 3rd law when engine do action in reaction of the action plane go forward. Weather its on runway or floating on air. Even if you heard about air tunnel which is used to check plane model in that they use opposite thing plane is stationary and air is passing through the wings. And on that basis it will float on air.
Second thing is that plane is not using land or runway as surface resistance to go forward like car. So finally in plane case if its on treadmill, it could fly but in car case car couldn't go forward.