Quite the opposite. Monopolies and oligopolies are the first two kinds of market failure they'll teach you about when you're learning basic capitalist economic theory in school.
It's what every company thrives to have, regardless of the economic system. Capitalism's key innovation over its predecessor, mercantilism, was to recognize that allowing them to happen is generally detrimental to society as a whole.