rock n play

Is it safe to let your baby sleep in the rock n play? We have a crib but for those first couple weeks when he's still itty bitty is the rock and play a good bassinet alternative?