Yes but when most people talk about 400 miles of range in an ICE car they are usually referring to at least typical (==harsh, if you are in the western part of the US) conditions with AC on full blast and lots of mountains.
When EV companies boast 400 miles of range they're testing it on an ideal track. Very different. Let's try SF to Yosemite in a Tesla Model 3.
Advertised route by Tesla.com: Straight shot, no charging https://i.imgur.com/11BCvSK.jpg
Closer to actual: Charge halfway, and arrive with very little charge left so you probably need to charge close to the destination as well. https://i.imgur.com/11BCvSK.jpg
I have a Tesla, I can verify that the route on Tesla.com emphatically does NOT work.
That said, their in-car navigation is pretty damn good, it's unfortunate their website advertises differently.
At any rate, most people never do all those things, nor do they go into some death valley. Because most of us don't like death.
As for the charging places, yes that is an issue. I never had trouble filling my horse with that gasoline stuff, either.