I think Yes... leaving any electronic device in direct sunlight can result in some kind of damage.
Depends on how long that device remains cooking in the heat.
But, I also believe that it would not be a good plan to try it, and I do not recommend it...
Is this concerning something that you have done recently? Or, just a curious question?