Cancer can affect the cervix. Some sexually transmitted viral infections can lead to cervical cancer. A vaccine is now available to prevent some of the viral infections that can cause cervical cancer. Make sure to ask your health care provider about that vaccine.