Yes.
Solar water heaters with auxiliary electric heaters, when weather permits, heat water in the same way as regular solar water heaters. They rely primarily on collecting solar energy for heating.
When hot water is needed on rainy days and bad weather, you can choose to use an electric backup heater to heat the water in the water tank.