Is it safe for babies to sleep in this?

Jess • 👼🏻👼🏻 + 🤱🏼🌈 + 🤰🏼#2

Or shouldn’t they be flat on their back?