A classic tenet of Marxist thought is that history moves in stages, from feudalism to capitalism to socialism to communism. It is a widely held belief in most communist parties that class revolution and communism is inevitable with the advancement of mechanization and industrialization, however the argument can be made that this may not be so.
Human society is mechanizing at a rapid rate, and within the next hundred years robots will be able to perform the vast majority of jobs that humans currently occupy. The question that arises is what will humans do when we are faced with an expanding population but a dearth of jobs?
Karl Marx would argue that humans could finally enjoy leisure, and be able to form complex human relationships now that the means of production are no longer humanized. Capitalist theory would argue that innovation and technologization would lead to new fields of work, and that humans will always have areas in which they can work, because new technology leads to new industries. A classic example of this would be how the rise of the internet led to a boom in software jobs.
Human society has many paths ahead of us. We could, like what Marine Le Pen and Donald Trump wishes, embrace xenophobia and nationalism, or we could embrace the corporate state and become slaves to consumerism. Or, we could remain true to our ideals, and work to ensure that freedom is a guaranteed right for all people. Freedom is antithetical to Communism, that is the way of the centralized state economy. However, freedom is at the very least discouraged under laissez-faire economics, which promotes profit over individual rights.
The short answer to the question of whether or not communism is inevitable is no, it is not. History has moved in stages, however it is my belief that we will continue to operate under capitalism until we move to a post-industrial robotic state. The 40 hour workweek will soon be a thing of the past, because robots will be able to achieve massive levels of productivity. Karl Marx was correct on many things, but on human nature he was deeply misguided.
Regardless of how the future goes, we must always look back towards the past for wisdom. The ideals of the Enlightenment sparked Western Civilization as we know it, and we must always look back towards these basic tenets of individual liberty and property rights to guide our thinking. The inherent rights of man must not be infringed upon, by any person, government, or corporation.