Of course!
However, the electricity generated by your windmill cannot be greater than or equal to the electricity consumed by driving the battery car. Because it is impossible to convert 100% during the conversion process.
In fact, energy is conserved, but in the continuous conversion process, most of it becomes frictional heat and is consumed.