Maybe, maybe not.
It's possible that the torpedo is simply set up with its own microsecond shield modulator that simply phases right through the shields.
Go back and re-watch Generations; what weapons did Lursa and B'etor use when they attacked Enterprise after they got the shield modulation code from Geordi?--
"Use of unnecessary violence in the apprehension of General Zod has been approved."
--
Sucrose Octanitrate.
Proof positive that with sufficient motivation, you can make anything explode.
It's possible that the torpedo is simply set up with its own microsecond shield modulator that simply phases right through the shields.
Go back and re-watch Generations; what weapons did Lursa and B'etor use when they attacked Enterprise after they got the shield modulation code from Geordi?--
"Use of unnecessary violence in the apprehension of General Zod has been approved."
--
Sucrose Octanitrate.
Proof positive that with sufficient motivation, you can make anything explode.