You can do that just be aware that you will eventually be spending more than just buying a new car just to keep the current one in good repair. Car collectors get around this because they use have a different car as the daily driver, and their collected car is repaired and only used in parades and such.
You are also turning away a lot of the advances in electric vehicles. Paying for gas in your old car, could be more than payments on a brand new electric car. (that would require a lot of driving.)
$24K buys you an astonishing amount of maintenance! Unless you're talking doing a restoration on a collectible car, it's basically impossible to spend that much.
I like old cars so I know. I drive one car from the 70s, one from the 80s, two from the 90s, one from the 00s and one from 2010s (pre-screen era). All those cars put together I haven't spent $20K in maintenance over the last decade.
If a new car makes you happy and you can afford the depreciation, get one. But if the criteria is saving money, get an old car and maintain it forever.
Car collectors are not the same thing as drivers of old cars. Collectors don't want to put miles on their collectables because they want the cars to maintain (or increase) their value. It's not a question of cost. Older cars are simpler, particularly pre-electronic ignition, and easier to repair.
Just as a random example, you can get a rebuilt automatic transmission for a '69 Ford Mustang for about $350 on ebay. The cheapest transmission (not rebuilt, just taken from a wreck) you'll find for a 2020 Mustang is about $540.
Parts availability can be a problem, but especially if you drive a once popular model and are willing to do work yourself, the mileage you can get out of junkyard parts is significant.
Are they though? Have there been any major breakthroughs in the engineering that make a 2026 car more structurally secure than one from 2011? I thought the main improvements were made in software, like lane assist and whatever else. But my assumption is that you need to go back considerably more than 15 years ago to see vehicles that are meaningfully less structurally safe.
For me, I will never own a car with any kind of screen on the dash.