Depends at which level you are learning to code, i can only speak from my experience, which was learning to code at school from 14-18 was pretty poor. I think most comp sci teachers just rely on the curriculum rather than actually teaching you how to be a proficient coder. You will learn how to code (badly), be taught how to use a stack (badly), using pseudo code (badly), things like that however for you to actually learn youll need other external resources, even invest in some reputable courses, leetcode, youtube, github, things like that