In high school, you may see getting a "bad" grade as the end of the world and something that could ruin your future. In truth, as long as it isn't too bad, you will be perfectly fine. I put bad in quotes because the definition of a bad grade varies widely. Someone who is used to only seeing A's on the report card would be sorely disappointed with a B. Whereas some people would be jumping out of their chair if they found out th ey got a B. It all just depends on personality.
Grades are important, but there is no reason to do anything you might regret over getting what you think of as a bad grade. Even if you get straight A's all the way through high school, you have a very slim chance of doing so in college. So whether its a bad grade or a bad grade, seriously, don't fret.