Yep, have had that happen.One time a broody hen was inside the main coop but one chick was outside. I think the hen went through the pop door and the chick wasn't paying attention. It did not know to follow her inside. I've seen that kind of thing a few times, not always at bedtime.
Had to carry portable nest out to run with opening covered and wait until everyone was in the nest, cover opening and carry back inside, She kept them inside for a few days then they learned the ramp.
But, of course!In my opinion, whether you use ramps, steps. or anything or nothing, whether the coop is ground level or elevated, in any circumstances, you need to be out there at bedtime and make sure the hen and all the chicks are where they need to be.
Whether they are broody chicks or not.