Is babies cot okay NEAR window?

Ch

For the first 6 months baby will be in our room, and then will be in his own room in a bigger cot. I’ve heard conflicting advice about having your baby sleep near the window, I just wondered if this was okay? Our room is always at a good temperature, even in winter. Thermal/blackout curtains will go up once baby is here, we have those now as I prefer natural daylight/moonlight. there’s no loose cords or ties, and the opening of window is the opposite side, there’s no drafts either.