No. you're best to go to family planning to get on birth control. It also depends on your age as well. You're best to get physician ( gynecologist advice) a condom is not guaranteed to prevent pregnancy.
When you are young, it's best to get counseling on this about the pros and cons of unplanned pregnancy that can/ can not happen. Many young people are uneducated on how to use a condom and practice safe sex.