I’ve asked this same question before, and after using a robot for a while, I think the answer is more “it depends” than a straight yes or no.
Leaving it in overnight once in a while usually isn’t a big deal, especially if you’re planning to run it again the next day. These cleaners are built to live in water during a cycle, so a single night won’t suddenly ruin it. Where problems tend to start is when it’s left submerged for long stretches without a break. Constant exposure to chlorine, heat, and sunlight can slowly harden seals, fade the plastic, and make the cord less flexible.
What I do now is pretty simple. If the cleaner finishes late and I know I’ll run it again in the morning, I leave it in and deal with it the next day. If it’s done and I won’t need it for a bit, I pull it out, rinse it off, clean the filter, and let it dry in the shade. I also always take it out after shocking the pool or if chlorine is running high.
So overnight here and there is fine. Just don’t let it become a permanent resident at the bottom of the pool, and it should last a lot longer.