Yes, you can freeze corn on the cob in foil. Instead of wrapping them in cling wrap you could use metal foil instead and follow any of the methods mentioned above. The key is to wrap the corn thoroughly to make sure that they are not exposed to air or freezer burns.