Yes, it is possible. We can design our lamp with a hybrid controller to connect to the grid. When the battery is low, solar power will be used to charge it first. If the battery is completely depleted, the grid will supply power to light up the lamp.