Most crime is committed by a very small percentage of the population and putting them into prisons works. El Salvador started throwing criminals in a prison mega complex and murder rate has dropped by 50%.
And to answer your question, no because there are other variables. Some populations simply have a larger share of criminals.
https://www.reuters.com/world/americas/el-salvador-murders-p...