Sure, when they're not enacted by communists. "Socialism" in the case you've described is generally welfare capitalism, a widening of the social responsibility of a still-capitalist state to release the pressure of revolution. The goal of true socialism is communism, and thus a true socialist state is continually working toward its own superfluity. State ownership in the meanwhile is seen as the smallest evil, until such responsibilities can be taken over by the people themselves. When all state duties are taken over by the people, then the need for the state evaporates, and so does the state. Such cannot be said to be the purpose behind the capitalist welfare state, and its "socialistic" programs.