SO a class can probably help with the decision, but the real choice lies right in your mind. Only you can decide. When I was in school, we had sex education that taught us that abstinence was best. I think it helped me and a few people. But it can only do so much.
Parents have to do their part also.
Lots of the young men and women I went to school with are teen parents now. I think part of that is because their parents were young when they were born and did not know how to be parents. Others were raised by grandparents who held old beliefs about not talking about sex. I find them very useful. I have learned all the basic sex education stuff and all about teen pregnancy.