Can I take the VA pre-license course if I'm still in high school?

Yes, you are allowed to take (and complete) the 60-hour Virginia real estate salespersons course while you are still in high school.
The Real Estate Board only requires that you be at least 18 years old and hold a high school diploma (or its equivalent) when it comes time to apply for your real estate license.