Yes. Seeds don’t need sunlight until they’ve germinated (sprouted above the soil). Prior to this, the seed carries all the energy the plant will need to sprout. But once it has germinated, the seedling will need lots of sunlight to grow well. Otherwise, they get leggy and weak trying to reach for more sun. Consider using a grow light if you can’t get enough sunlight in a windowsill for your seedlings.