Kind of sort of. The moped made you very independent. You could get 100 miles on a gallon of gas which in the 1970s was under 1 $USD. If you ran out of fuel you could pedal to the gas station. It was a miserable pedal but it was possible.
eBikes definitely have a use though. In Portugal I saw a lot of ebikes doing food delivery. The hills were manageable with the electric motor. I still prefer the moped and I'm disappointed that it's hard to buy or find one.