Parents ask this expecting one to be the foundation for the other. Neither is. They are separate skills that answer separate questions, and a child can start with either.
AI literacy is about using systems you did not build: prompting them precisely, checking whether their output is true, knowing what not to type into them. Programming is about building a system yourself: decomposing a problem into steps a machine can execute, and debugging when it does not.