Sure they do. It makes a lot of sense to conserve power when food supplies are low.
It’s one of those occasions in biology (not rare) when the term “intelligent design,” despite other merits, falls flat as a description.
Let’s consider the eye, which is but one of many subsystems (along with the brain, heart, liver, lungs, etc.) in higher animals that coordinate their tasks to keep an organism alive.
The scientists credited the bees with more intelligence than some humans.