Sleeping questions!

I got my son this pack and play and it comes with a bassinet(accidentally grabbed the pink version but it literally is just a color so idc) and I was wondering if it’s safe for them to sleep in all night. My sons bassinet that he sleeps in is messed up and his cribs in his room, but I’d have to take it apart to put in my room(he’s going to stay in my room until he’s one) he’s my first so I don’t really know if he could or not. Thanks (: