Is it true taking a can of cola and panadol can prevent pregnancy?

No, it does not prevent pregnancy. It would be extremely foolish to use this as a method of contraception.