Yes, Even if you have or have had HPV, it is likely that you were only exposed to one or two of the HPV types. The vaccine will not take away or protect you from the ones you already have. The vaccine will protect you against the ones you DON'T have that are included in the vaccine.
You do not need to know which types you have had previously to be vaccinated. The vaccine will not take care of prior HPV infections or dysplasias and is not a treatment for warts or dysplasia.
GARDASIL is a registered trademark of Merck & Co., Inc.