That would be absolutely fine!
If generative image AI is what you mean to specifically prohibit, it might be worth just saying that in the license text. "Artificial intelligence or machine learning projects" could be interpreted pretty broadly, especially by anyone that doesn't know anything about those topics, or who hasn't been keeping up with AI art news.
Of course, I get it if you just want to head off as many potential future problems as possible.
(Also, is there a reason you haven't updated the license text in your older projects to say anything about generative AI?)
I indeed want to head off potential future problems, given the breakneck pace the entire AI "art" situation has been developing.
I don't know how good it would be or how much sense it would make to update the licenses for my older projects after a couple of years they've been here on Itch, and even then I don't have the means or methods to enforce these licenses- I'm just one person and I'd rather focus on creating more interesting stuff than spend what limited time and resources I have dealing with that.