No. The rules say the temp sensor needs to be a certain distance from all objects, including trees. We well know that a canopy of trees leads to cooler weather in the daytime and warmer weather at nightime, as it limits radiational cooling.
This is Met 101.