Can I take the CA pre-license course if I'm still in High School?

Yes, you are allowed to take (and complete) the 135-hours of required pre-license education while you are still in High School.
The DRE only requires that you are at least 18 years old when it comes time to apply for your real estate license.