pack and play safe for sleeping?

Elise • Married to my highschool sweetheart❤️, 2.5 yo daughter 👧 and pregnant with my 🌈 rainbow baby 🤞
Is it ok for baby to sleep in a pack and play in our room for the first few months? We don't have a bassinet but the pack and play we got has the infant napper attachment. Is this safe do you think or should I invest in a bassinet?