Pediatrician correct?

K

Is my pediatrician correct? She says I shouldn’t be nursing my baby to sleep for his naps. Only when he wakes up. She also said I should let him “cry it out” which I know I cannot do nor want to do. He is only 4mo old.

Thank you all for the comments. It has helped me be more confident in my choice to nurse to sleep. He loves it and it works! Without nursing to sleep he cries non-stop and it breaks my heart.