We have gone from something like 90% of people employed growing food to something in the single digits (I'm too lazy at the moment to get exact figures, but this is close enough for my point).
Did all those advances in agriculture create jobs? I would say yes and no.
For the specific industry the advances happened in? No, definitely not. There are way fewer jobs in agriculture now.
But what did happen is that people were freed up to do different things. Those jobs were indirectly created by the fact that people did not need to spend so much time growing food. That allowed people to do other things to create value and improve our lives. Without those agriculture advances, we wouldn't have AI right now.
I suspect AI will be similar. We aren't going to have more jobs in the technology section because of AI. But that guy who hears "Code Monkey" for the first time and marvels that someone wrote a song about his life? He won't be a code monkey anymore he will be doing something else. If he's lucky something more personally fulfilling.