Is it safe for baby to sleep in crib once home from the hospital?

? Or is that to early?