Yes, you can have frost at 40 degrees. This happens when the temperature of the air dips below 32 degrees Fahrenheit, but the ground is still above freezing. The air cools the ground, and as a result, water vapor in the air condenses into tiny ice crystals. These crystals form on objects that are exposed to cold air, such as plants and trees.