If AI is going to do that, AI needs to at least get good enough to autonomously produce all the chips and energy it needs to execute. That seems like a pretty far way off, considering we don't even have robots that can fold laundry competently.
If AI exists but there are still humans producing chips for it, I don't think you would be able to say that civilization has been destroyed