Nope!
Calling things "sleep" is a little bit prejudicial. There are plenty of different reasons why living things might have different levels of large-scale activity at different times, and evolution being the master craftsman that it is, all these reasons tend to get smushed into one complicated mass - but it's not the same reasons, or the same complicated process, in each species. Plants, for example, use a sleep-analogue to do important parts of their respiratory cycle.
So sure, one might note that AIs also have reasons to have different levels of large-scale activity at different times. And so they probably will! But there's no reason it has to be the same peculiar set of reasons and constraints that lead to human sleep, nor will it have to be the same evolutionary mishmash of a solution.
“The real frontier is finding an animal that sleeps that doesn’t have neurons at all, From https://www.science.org/content/article/if-alive-sleeps-brainless-creatures-shed-light-why-we-slumber