Most reputable Computer Science programs start with introductory level coursework that teach you how to program. After you’ve passed those introductory level classes, you should be equipped with the skills to handle the more advanced programming/computing classes.
Some classes within the major might not even require you having programming knowledge at all, and instead might be more based in math.