The pill and condoms

I am planning on going on the pill soon . Until then will just using a condom during sex be enough to prevent pregnancy?(will check if it ripped after sex)