is this a good way to practice safe sex?

Hi! so me and my boyfriend are just beginning to become regularly sexually active. I am 19 years old and want to avoid pregnancy. Would it be effective if I went on the pill (assuming I take it correctly) AND used condoms during sex? I want to make sure I am taking as much precaution as possible