Well, yes and no.
A good test, from a libertarian perspective, regarding whether a given task should be done by government, is as follows: is it an essential task? will it be done *better* by government, or not done at all if gov doesn't do it?
I disagree that all of these would be tests from a libertarian perspective, because there are some essential tasks that should only be done by government (e.g. legislation & official record-keeping of deeds), and there are other essential tasks that are best left to the free market (e.g. growing food, building houses, designing cars).
An example of something I consider to be better done by government - in a manner of speaking - is keeping the roads and highways public, but generally speaking I don't think anything is done better by government. In practice, the idea of keeping the roads and highways public is that they're still built by private construction companies using machinery, equipment, and supplies built and produced by private companies.
One of the problems I see with socialism is that it scales up very poorly. At a very local level socialism can work fairly well. There's something called Dunbar's number (which I understand is somewhere around 150 people), and this number is a threshold to where I think socialism can work well; a socialist community of 150 or fewer people works well, but a socialist nation consisting of 150 thousand (or more) people doesn't do well. I'm willing to accept that a socialist community of a few thousand can still do fairly ok, for the sake of the argument regarding the roads & highway system.
If you look at how the roads & highway system is "socialized", you'll see that it's a mixture of local roads being managed locally, longer and larger routes being managed at the county or state level, and the interstate highway system being managed at the state level (including multiple state cooperation with roads connecting between states) with some federal funding.
The reason I think it's better for roads and highways to be public, and to exaggerate to make a point, imagine having to stop at a toll booth in front of every single home & imagine every single home owner having to operate a toll booth. That's not feasible & it's far more economically efficient to have a road & highway system that's more or less centralized the way it is now and funded with taxes.
I'm also opposed to making roads private, because that creates the dilemma of everyone being at the mercy of their neighbors by potentially becoming prisoners on their own property, especially if your neighbor don't like you or get angry with you. I think people ought to be able to move around and travel without needing permission from some private owner of the road they depend on for access to different places.
If people want to call that socialism, that's fine I don't really care at all, but I'm also not opposed to additional roads (or methods of transportation such as what Musk's Hyperloop is intended to be) that are privately owned.