There’s no hard and fast rule about this. If your baby was sleeping in the cot earlier, then this may be a passing phase. Infants like to be carried and the human touch and once we do that it doesn’t take time to become a habit. Like icy_mama said don’t rock him too much, let him take comfort from the warmth he gets from you and gently put him down when you think he’s about to fall asleep. Don’t worry, we have been through this and it passes soon.