No. Not in the same category. NFP, unlike abstinence, entails a subordination of the primary ends of martial relations to the secondary, which Pope Pius XI condemned in Casti Conubii. Pius XII said lots of things, and he was plain wrong about NFP, just like he was about other matters.
If you recall, one of the V2 innovations that caused a stir among the conservative fathers was the intention to elevate the secondary ends of marital relations to the co-primary. That has extreme ramifications for moral theology, potentially rendering any physical relations geared toward what were theretofore secondary ends licit. In any case, the chief problem with NFP that's never been addressed is that, along these lines, Pius XI taught (in an Encylical addressed the the Universal Church, a docuмent of much greater authority that Pius XII's long, rambling, clearly speculative speech to a group of midwives) that relations between husband are wife are illicit if their primary ends (procreation) are subordinated to the secondary. That's just part and parcel of the definition of primary/secondary ends (otherwise the terms are meaningless).
Of all the proponents of NFP, no one has ever explained how engaging in marital relations while intending to exclude procreation does not subordinate the primary end (procreation) to the secondary end. If seeking the secondary while attempting to exclude the primary doesn't invert the ends, then there's no such thing as an inversion of ends.
As far as Pius XII, his was the watershed papacy that led directly to V2.
Pius XII:
1) failed to consecrate Russia (which would have prevented V2)
2) opened the door to evolution
3) set up Bugnini to begin his liturgical experimentations (even Roncalli kicked the guy out)
4) permitted some of the first Ecuмenical gatherings
5) appointed nearly every single one of the bishops who would go on to give us the glories of V2 (this is the pope's #1 job, to appoint good bishops, and surely he could have found Traditional- and conservative- leaning priests out there to elevate to the episcopacy, thereby transforming the Church during his lengthy/protracted reign)
6) allowed Fr. Feeney to be persecuted by the heresiarch Cushing, who in turn was left undisciplined, doing massive damage to Church dogma