Sure, if you can find fuel. By 2034 EVs will be enough of the market that gas stations are already closing (remember today new cars are 10 year old used cars, and there is every reason to think EVs will be half of all cars). There is still one on every corner, so you might not see this trend, but it will be in the statistics. By 2038 you will noticed it because many corners won't have a gas station at all. And of course the stations will already see this on the bottom line and will be less interested in replacing their pumps when the get old, and if they break they might just close that one island instead of fixing it. By 2045 fuel will be special order in most places.
Note that construction, freight, and other high energy use niches will still use a lot of fuel, so diesel will be available for a while longer. However those vehicles tend to use larger nozzles that won't fit in your diesel car. Gasoline will be hard to find - you can still make road trips, but you will need to plan your fuel stops like people plan EV charging today (on some roads you don't need to plan your EV charging, but there are others you must).