LLMs can be pretty great to help you learn. You do have to watch out for when they're teaching you something wrong, especially if it's something like history, where it could just be making things up completely and it's harder to tell than with pure logic like computer science.
I suppose my grand parent comment is unpopular but I really do think understanding is paramount in software that’s critical. LLMs are tools, use them to help not hurt :)