Yes, bettas like light. Betta fish need scheduled light and dark periods to maintain their regular sleeping patterns. To keep bettas content, you need to replicate the light pattern of their natural habitat. Try providing them with 14-16 hours of light and around 8 hours of darkness.
Use artificial lights that are not too harsh. You can also install timers to ensure the lights are well-controlled.
Also, contrary to popular belief, bettas don’t like direct sunlight, as it’s too harsh and can lead to excess algae growth. Try to stick to artificial lights and keep your betta tank away from direct sunlight.