It varies, even by denomination, within religions. But there certainly is a connection between the sacred and violence - there always has been.
Why else is animal sacrifice - and blood sacrifice of whatever form - among the earliest and most universal phenomena of worship? Priests in the ancient world partook of industrial scale slaying of animals and in more primitive cases, people.
The Aztec religion was effectively founded upon an endless tumult of dead bodies, both of colonized peoples and human sacrifice victims.
Ancient Roman religion, likewise, explicitly justified the conquests of the empire as a divine mission blessed by Jupiter to subjugate the known world.
It's only around the so-called axial era - roughly 600 BCE to 200 CE - that we see the emergence of avowedly pacifist religious teachings in a number of places, which decry traditional rites such as blood sacrifice, warfare and violent reprisal more generally.
The Jain scriptures, Hindu Upanishads, the Buddhist Tripitaka and the teachings of Jesus in Christianity are part of this trend that "reformed" ancient notions of religiosity in India and the near east, respectively (and through their spread, in other domains).
But that was a relatively recent phenomenon if one considers the grandsweep of religious history.