You should avoid doing that as much as you can because the car interior gets hot fast. As a result, you might end up getting a burnt-out hard disk. Even the motherboard can be affected by the heat. However, if you're forced to keep it in the car, you must turn it off.