To a degree, maybe, but even in that even you have to fly close enough to deploy the torpedoes, which have a
much reduced practical range limit as compared to air-breathing missile weapons, simply because air-breathers aren't paying through the nose to plow through non-compressible and high-drag water. And that's kinda asking for your torpedo bombers to eat long-distance anti-aircraft lasers. Effective torpedo range is limited by torpedo fuel loads, speed, and as something of a corollary transit time. If you look at the publicly available range bands for modern US heavy torpedoes, the sprint setting is ~38km at ~55 knots, which works out to ~102 km/h. That means it's taking around twenty minutes, from launch to propulsion dying, to hit that distance. Torpedoes are
slow as fuck. Simply turning around and sailing away from homing torpedoes is not an unreasonable tactic, absent other concerns. And this is as regards heavyweight torpedoes, which are practically aquatic cruise missiles. Lightweight torpedoes intended for use against "soft" targets like other submarines are much,
much,
much shorter-ranged.
You can also, if you see them coming, engage torpedoes with ballistic point defense or any part of a ships main battery, or scatter-shot ASW systems like
hedgehogs. You could, again, theoretically avoid this by having the torpedoes run really,
really deep until the last minute and then popping up to attack, but I imagine there are other problems with that, and it would again have to be
pretty deep for it to be able to ignore the effects of even 5" guns punching HE rounds into its general vicinity. And then there's the range of other countermeasures, like various decoys or jamming methods, and torpedoes don't have a visual target identification option.
Naval torpedoes are
great as stealth or ambush weapons. That's why we still use them on submarines instead of going completely to a ballistic missile submarine model. They're also one of the only effective ways to engage submarine targets. Air-deployed torpedoes, though, are not a stealth or ambush weapon. Not with the aircraft stealth tech we have now or in-quest.