Days on lot - good or bad?

I know you’ve said that you can get a good deal if a car has been a the lot for a longer than average time, but is that good for the car? I’m just wondering, is it ok that it’s been sitting outside in the elements without being driven? It could be sitting for a couple of months.