Pack n play for a newborn?

Me and my husband are going to have our first child in January. We want to buy a pack n play instead of a crib, since the crib is kind of expensive. Is it okay for a newborn to sleep in a pack n play?