Text this: The Impact of AI Use in Programming Courses on Critical Thinking Skills