Coconut oil has been shown to have a slight spermicidal effect, but it is not a reliable form of birth control. It is important to use alternative forms of birth control if you are not trying to conceive.