It's important to understand that while a strong immune system can help the body fight off infections more effectively, this does not mean that any one food or drink including pineapple juice can prevent the transmission of sexually transmitted diseases.