That's true, but not particularly actionable. "Avoid doing stupid things" isn't something you can just decide to do directly. It's a good goal, but you need to find more specific ways to achieve that goal.
There are long established ways to reduce the incidence of stupidity. Always using checklists, always getting a weather brief, establishing personal minimums, etc. Of course, all of this will be covered as a standard part of any flying safety course.
IMO just saying "avoid doing stupid things" is dangerous. It's too easy to take that advice and say, well, I'm obviously not stupid, so I'm safe. And then you fly into a thunderstorm or stall while turning final or forget to connect a control surface, because avoiding stupidity has little if anything to do with being smart.
You can definitely stack the odds heavily in your favor, but it takes a lot of effort.