Newborn sleeping

Annabela
Baby is 2 weeks old and I hold him or rock him to sleep in my arms. He won't fall asleep any other way. Today I was told by someone that I need to stop doing that because then he will get used to it and later on will have problems going to sleep on his own. Opinions?