Of course it’s not an investment on its own. They’re a consumable. But without the car it limits your options - my kids can’t do after school clubs unless I can transport them as we live too far from the nearest school and the bus doesn’t cover after school clubs. So the car is an investment in their future.
Unless you’re doing higher than average mileage though a cheap car with 12 months MOT is going to last several years, enough that the cost of tax and insurance is going to dwarf the cost of the car.