No. Solar panels need a constant supply of sunlight to produce energy. However, this generation capacity is influenced by the intensity of the sunlight. Your 2 kW solar panels will give less energy output around sunrise and sunset, whereas the production capacity progresses to a maximum around noon. Having said that, you should be worried about this interruption in power supply as you will connected with a grid or a reliable source at all times to make up for the continuity.