This is actually a great way to foster the learning spirit in the age of AI. Even if the student uses AI to arrive at an answer, they will still need to, at the very least, ask the AI to give it an explanation that will teach them how it arrived to the solution.
No this is not the way we want learning to be - just like how students are banned from using calculators until they have mastered the foundational thinking.