In the field of electricity generation, sure. Technology is there, apart from storage technology.
But, given still higher costs and range anxiety, it will be very difficult to convince most consumers to buy electric cars. It will be most probably only generational shift: people born before ~1990 will still buy petrol cars till they die out, and younger generations will progressively shift, having different habits. It will take whole century to fully switch to electric vehicles in developed countries - and lack of reliable electric grid will make it in places like Africa even slower.
An even harder, and even larger part of the story is industrial heat (needs to be very reliable and cheap), and residential heating (needs to be very, very cheap and available in large volumes). No good non-fossil solutions here exist.