Maybe, maybe not.
For this, we can only reason using our current knowledge.
We humans need sleep, and most people need 7-9 hours of sleep every day.
If you don't sleep, you will be very tired and unable to live and work normally. If you don't sleep for a long time, your life will be in danger.
So, are all animals like this?
Most animals are like this, but there are exceptions.
Scientists tested bullfrogs and found that they reacted the same way to external stimuli when active and resting, which proves that bullfrogs do not sleep.
However, there are also objections to this. They believe that the detection method is wrong. Maybe the way bullfrogs sleep is not the way we understand. At least there is insufficient evidence that bullfrogs do not sleep.
The research on dolphins is much more thorough.
Dolphins are able to sleep with half their brains and the other half awake, which is more evolved than humans, allowing them to stay awake in a sense, although they may not respond as well as if their entire brains are awake.
The dolphin example puts scientists in a difficult position because it involves defining sleep.
Even if only part of the brain sleeps, dolphins also sleep. By human standards, dolphins do not sleep.
In the case of bees, they do not need to sleep to replenish their physical strength and can stay up for long periods of time.
So for bees, sleep may not be necessary for survival.