As for your image? You're right about one thing: roads, bridges, schools, and hospitals aren't inherently socialism. Public works can exist under virtually any economic system, including Rome.
But the image gets several important things wrong.
Socialism did not begin in 1847, and Marx didn't invent socialism. Socialist thinkers such as Saint-Simon, Fourier, and Robert Owen were developing socialist ideas before Marx. And Das Kapital wasn't published in 1848. The first volume came out in 1867. You're thinking of The Communist Manifesto, which was published in 1848.
The definition of socialism in the meme is also far too narrow. Socialism does not simply mean "everything belongs to the state" or "there is no private property." That's describing particular forms of state socialism or communism, not socialism as a whole. Likewise, welfare and food stamps aren't inherently socialism. Capitalist countries can and do have welfare programs.
And "socialism failed everywhere" only works if you treat every socialist tradition and every country that called itself socialist as the same thing. That's historically far too simplistic.
But this actually supports my original point about Jesus.
I'm not arguing Jesus was a socialist. I'm arguing that he wasn't a capitalist either. He lived in a Roman agrarian economy with money, markets, private property, trade, taxation, and wealth inequality. Those things existed long before capitalism as a distinct economic system.
Jesus' teachings about wealth and poverty are what matter here. Matthew 19:21 emphasizes giving possessions to the poor, and Acts 2:44–45 describes early Christians sharing possessions and distributing resources according to need.
That doesn't make Jesus a socialist. But your examples don't make him a capitalist either.
Ancient people having markets doesn't mean capitalism existed in the modern sense, just as ancient people sharing resources doesn't mean socialism existed in the modern sense.
The historically defensible position is that Jesus was neither. He was a first-century Jewish teacher living under the Roman economic order, whose teachings about wealth and poverty have since been interpreted by both socialist and capitalist traditions.