The “you can’t spoil a baby saying”

So my son’s pediatrician said whenever my 1 month old start falling asleep during feeding, lay him down right away to avoid him getting spoiled because it will train him on how to sleep in his bed. She said it doesn’t matter if he has burped or not and to lay him down immediately. She also said when he cry, don’t answer right away. Do y’all agree or disagree? What has helped you with raising a baby?