Safe Crib Set Up?

Katie • FTM•Tyson born 2.9.18💙•Student 📚• wife 👩

Does anyone know if having a curtain type thing around the crib is safe? We will be sharing our room with baby for maybe first 6 months and just want to be able block out light. I'm attaching pics I found online.