Yes, because tracks like Le Sarthe have extremely long straights like Mulsanne, where 85% of the time is spent on full throttle. Obviously the car will be setup for high speed, rather than pure acceleration.
LMP1 would presumably beat an F1 car as far as top speed goes, but I actually would expect a contemporary F1 car to beat an LMP1 car around La Sarthe if it was set up for the circuit (pretty much using Monza setup, possibly with more ride height). F1 cars would eat the heavier, less powerful LMPs under braking (and there is quite a lot of heavy braking), through the corners (especially the high speed corners) and especially on corner exits, and I don't think the higher top speeds would be enough for the LMP1s to catch up.
It would be an interesting duel to see, though...
F1 cars can do 400kph, only with the correct gearing and a long stretch of tarmac. Which is why you will hardly ever see a modern F1 car trap beyond 200mph (with exception of Monza, spa etc), most of the speed is spent on acceleration, deacceleration and high speed corners.
I doubt any of the contemporary F1 cars would crack 400kph. Honda reportedly did it with their Bonneville 400 project some years ago, but that was not an official test and also whether that car was within the F1 rules I don't know, they certainly had the big rear fin instead of the rear wing at some point. Anyway, that car had the more powerful V10 engine and also I would presume that the aero development over last five years which has made the cars much faster around fast corners would also have made them slower on the straight line.
It would actually be interesting to see how the current F1 cars would stack up in absolute top speed comparison...