Sleep help

My 2 month old has decided the last couple of nights that he can’t go to sleep at bedtime unless I hold him. If I lay him down in his crib or even the boppy pillow he will start crying. But once he is asleep, he will sleep through the whole night as long as I am holding him. Has anyone else had this problem?