Electricity generation by renewables is very viable right now, just look at parts of Europe and even Texas.
But that's for electricity and not transportation. Until battery technologies catch up(or some other energy carrier), fossil fuels will rule transportation.