depends of if the door opens to something predator proof, it should be closed before dark every night if it is just open to the yard.
My coop was open to the yard before my run, my food and water are in my run, I don't have to run home every night to lock up the chickens (and living in the city I got really strange looks for this).
I don't come home when there is an emergency (hospital/sudden out of town funeral) to a chicken massacre either...
I did that once...
I propose (when possible) a secure coop and run, the coop is big enough for those hens and the nest boxes- the run would need to be 40 square feet (and tall enough to get into to clean) 8*5*? or 4*10*? if you have the room.
If not look into automatic coop doors, my neighbor built one that works and anyone too dumb to go in on time gets one help inside- after that they are on their own to be safe, he wont risk his smart chickens for the two dumb ones that roost outside- was three one didn't roost high enough.