I don’t know much about Poland. Maybe, the influence of the church started to wane.
But the idea that socialism positively contributes to the growth of population is definitely false. After the coup of 1917 the level of childbirth decreased dramatically in the USSR in comparison with that of the Russian Empire. The chart below is a vivid example of that. After the generation of 1922 urban women (who represented the majority of population) gave birth on average to less than two children , and this figure was at this stably low level throughout all soviet times without any definite upward tendency. Hence, there are no achievements to brag about.
http://www.infran.ru/vovenko/60years_ww2/demogr1.htmНесмотря на то, что рождаемость поколений, появившихся на свет в Российской империи и СССР в первые десятилетия 20 в., была заметно выше, чем в европейских странах, воспроизводственный результат для поколений 1905-1930-х годов рождения у нас оказался таким же или даже ниже, чем результаты, полученные для ряда поколений во Франции (когорты 1901-1908 ), в Швеции (когорты 1901-1915), в Норвегии (когорты 1901-1910), в Италии (когорты 1914-1919). Это может быть объяснено только существенно более высоким уровнем смертности в СССР.