If the intention is good, it could be any sin?
Yes, it can.
But you are inserted inside a community which taught you that. Which is a community that teaches you that nowadays?
In the Inca times, there were the human sacrifices.
We have the case of the suicide-bombers, today.
But God is leading communities to Jesus Christ, to his commandments. Jesus even said that Moses let the Jews divorce because they were stone-headed, but that did not want it to be that way.
So, communities must convert.
And the individual must convert also. He must learn what is God’s will and not only My Will. If his posture is this one, to only care for my will, I do not thing there would be good intentions. There would be ignorant good intentions, or careless good intentions, which is totally different.