Wouldn't this be a problem for any takeout order? I know some restaurants don't offer takeout for this reason.
And then there are a lot of foods that just aren't going to be good. Basically, if it's something that either cold or that you would normally consider reheating in the oven or microwave it's probably OK. Otherwise, not.
And, as others have noted, take-out you have more control over. There are some sandwiches I'll order from a local place and pickup given that I know I'll be home in less than 10 minutes. I'd be less tempted if I knew it might be sitting in a delivery car for an hour.