I would say "no". Jesus did not have (as far as we can tell) nor did he preach an economic philosophy. He became human so that humankind might become God, to bring spiritual salvation. He did have
social teachings but this is distinct from an actual economic ideology.
The Early Church however did have a kind of economic philosophy, based upon Jesus' teachings, that now goes by the name of "
Mutualism". This philosophy of social mutualism eventually led to the collapse of the Roman economic system of patronage.
Socialism, at least in its pure Marxist form, is an economic philosophy in which the means of production are owned by the state rather than by individuals. In a Communist state private property is abolished and individual freedom is subordinated to the state, which assures (theoretically speaking) that everyone is equal.
In the Book of Acts once finds an economic system described that has
similarities with Socialism but in essence is very different:
The community of believers was of one heart and mind, and no one claimed that any of his possessions was his own, but they had everything in common. With great power the apostles bore witness to the resurrection of the Lord Jesus, and great favor was accorded them all. There was no needy person among them, for those who owned property or houses would sell them, bring the proceeds of the sale, and put them at the feet of the apostles, and they were distributed to each according to need. (Acts 4: 32-35)
“And all who believed were together and had all things in common; and they sold their possessions and goods and distributed them to all, as any had need.”(Acts 2.44-45; RSV):
In the above system, renunciation of property is voluntary and not given over too a state but to a non-governmental religious body that works as a kind of charity bank for the needs of all the faithful. Also of note is the fact that people still had "possessions", they simply no longer saw them as uniquely there on. This is because these Early Christians realized that life itself is borrowed and that ultimately only God has true, lasting ownership over anything. Christianity has never rejected the right to own private property. We see it as a natural right but not an absolute one; rather as a right that has a
use that should be for the benefit not only of yourself but for everyone in common.
The
Acts economy is not state-imposed but voluntarily and from the grassroots - from the bottom up and not the top down - emphasising individual persons as opposed to the Communist one which is state-imposed, totalitarian and views people as simply cogs in a great machine. Christianity emphases not only equality but also freedom rooted in Christ.
Furthermore there is an emotional unity - a solidarity of heart and oneness of spirit, over and above distinctions of class, race or gender, to the biblical economic sharing that is lacking in Communism.
Communism views human history in terms of class warfare and the eventual victory of the working class over the upper classes. The Christian religion is not time-bound but looks to eternity. St Paul says in Galatians 3:28 "
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus." Christianity therefore claims that distinctions of class, spiritually speaking, do not actually exist; whereas Communism views reality
in terms of class conflict. Christianity holds that people of different classes, alternatively, should be united in harmony within the same body of Christ and see themselves as brothers and sisters over and above their social class, rather than in a state of warfare with each other.
Social conditions are important for Christians to improve, this world needs to be bettered, however there is a world beyond this world in Christianity that the materialistic belief structure of Communism lacks - a spiritual universe, and it is through membership in this spiritual reality through baptism, that the Christian transcends class, racial and sexual differences on earth via a unity in the transcendent body of Christ, rather than through revolution.
In a Communist system the state becomes deified and people become like cogs in a faceless sea of humanity, whereas in Acts the Roman Empire (the state of that period) had nothing at all to do with the monetary fund created and run by the Apostles.
Jesus and his Apostles did not preach that the Roman Empire should take over the means of production and abolish all private property too create a "dictatorship of the proletariat" after a working class revolution to topple the bourgeoisie and upper classes, did they? :no:
Communism posits a kind of secular messianism whereby salvation is received through the earthly overthrow of unjust capitalist economies or industries and the creation of a working class dictatorship of (supposed) equality between workers. Christianity rejects as idolatry any form of state-worship or secular salvation.
Therefore they could not have been Socialists or Communists.