I'm pretty sure that the commenter was referring to baby boxes as in "box of supplies to be able to take care of a baby" [0] and not as in "box to abandon a baby if you cannot take care of it" [1].
What works is a proper health care system with a predefined care path for pregnancies including regular checkups, access to courses and educational material about pregnancy and child birth, low bar for paid sick leave for pregnant women and paid maternity leave mandated by law.
Contents: https://www.parentclub.scot/baby-box
A couple of colleagues in New York had their first kids around the same time, swapping stories is always pretty eye opening.
Life is most precious in the US until you are born.
But also maybe the term baby box is too ambiguous to be used at all, if it means both of those things.