4 months old

My daughter is 4 months old and she won't sleep unless its in my bed or in her cot I'm to scared to leave her in her cot because its in a different room, I'm going to put it in my room soon, would it be safe for me and my daughter to sleep in my bed together?