Yes, this is an "Extended-range electric vehicle" or EREV

> an electric vehicle fitted with a fuel-powered internal combustion engine, acting as a range extender that drives a generator

https://en.wikipedia.org/wiki/Extended-range_electric_vehicl...