Pulling out and pill

In terms of effectiveness....

the pill+pulling out(no condom) =pill+condom(no pulling out)

Would both be okay?