The answer to this question is both Yes and No.
Yes, this vaccine will help you prevent from some diseases even if you are already infected. As said, there are several strains of HPV. The vaccine that is administered cannot provide you with immunity to the strain that has already infected you. However, it can provide immunity to you for rest of the strains. Effectively, though this vaccine may not cure your current problem but can safeguard you from several other diseases caused by different HPV strains. Please inform your doctor if he/she doesn’t know already about your pre-existing condition.