Yes. It’s all tied together.
It was also spelled out in the 1960’s in a document called “Humane Vitae”. A lot of folks ridiculed the document, but it was dead on.
Link here http://www.vatican.va/holy_father/paul_vi/encyclicals/documents/hf_p-vi_enc_25071968_humanae-vitae_en.html