In theory the candles can be lit after sunset or even after nightfall so long as there is a pre-existing flame to light them from. In fact, some people actually have the custom to wait and to light the Yom Tov candles when the husband comes home from synagogue.