Is this safe for a newborn to sleep in ?

We got a pack and play at our baby shower and one of the attachments is a little napper. Is that safe to have my newborn sleep in ? It has mesh netting around it and the bottom is a soft material.