The chicken pox vaccine prevents chicken pox; the shingles vaccine
.. In theory this is the answer.
Also, in theory if you get the chicken pox vaccine you cannot get chicken pox and since you have to have had chicken pox to get shingles then you can never get shingles if you have not had chicken pox.
As your md for a details of your particular situation.