Yes I believe here the youngest you can be collecting high school credits are 7th and 8th grade. You can take the classes as younger but no credits. So you could take Algebra as a 6th grader but I think you don't get high school credit. But you would get credit for Geometry in the 7th. I may be wrong but I think that is the rule. My son is getting credits for Algebra and Physical Science in 8th grade. And if his school offered (or he took it online) he could do Spanish I also. There are some technology electives that get high school credit also.
Also, my SIL (mom of a PG son) said that once you get more than 5 HS credits you are considered a tenth grader no matter if you have never set foot in high school, so she didn't let her son take an online class this summer because he had 5 high school credits and she didn't want him to move from 8th grade to 10th grade. (He has an older brother who is in 10th grade and the son in question has already skipped once). She doesn't want them leaving the nest the same year.