Pope Pius XI had, in Casti Conubii, emphasized contraception is contrary to the primary natural purpose of the sexual act. And of course, it should be obvious to anyone that producing the next generation is a, if not the, primary reason the sexual act exists.