Yes.
Condoms used 100% correctly are 98-99% effective.
That means for every 100 couples using condoms properly 1 or 2 will get pregnant.
To help your self make sure you buy condoms that have either the british kite mark (if in the uk) or in the usa that they are fda approved (or iso approved elsewhere in the world) and aim to get condoms that contain a spermicidal lubricant, that will help kill any sperm if you do have an accident.
Never double condoms up as the friction can cause them to tear.
Never used any oil based lubes as this can cause condoms to burst.
Big props to you for thinking first and making a sensible choice to protect your self.