Light socket wiring question

I’m replacing the ceiling light fixture in my hallway. The old one had 2 sockets but the new one only has 1. I’m a dummy and forgot to mark each live/neutral pair. I took a 50/50 guess to cap one and connect the other, and it seems to work fine, but is there a chance I guessed wrong and something bad will happen? Would the light work at all if I connected “live 1” and “neutral 2” to the new socket?