A pack and play is very safe for an infant or other young baby to sleep in and it's great for when you're traveling with your baby and need a place for your baby to safely sleep in.
My nephew sleeps in a pack n play at home as well as when he's at a hotel without a crib and he's been just fine.