If these are high school (not college or dual enrollment) courses, then you will have to retake them in college if needed for your major, although some colleges’ math departments allow for advanced placement by exam (although you may still have to substitute a more advanced math course in its place).
If they are college courses, then they are likely to be transferable to colleges, although colleges may vary on whether they are accepted for subject credit (versus wanting you to retake the course because the course you took is missing one week’s worth of topics or whatever).
If you do have to repeat those courses, some colleges offer honors versions that may be more interesting than the regular versions if you have already seen the regular version material before.