In most cases when you take college classes while in high school the scores of those classes will be counted toward both your GPA and your high school transcript. However, it's important to check with your high school and the community college in advance to confirm this information and also to confirm if there's a limit to how many classes will count.
Also depending on the college that you are enrolled at, they may charge a different cost for dual enrollment classes than students that are taking classes after they have graduated from high school.