Yes.
But your word choice indicates a poor understanding of the situation.
How can you justify calling it "slaughter," when they had plenty of advance warning to vacate the area and let the Israelites have their homeland back?
Advance warning from whom?
And in the interest of being honest, it wasn't so much a warning to vacate as it was being offered terms of surrender.
Deuteronomy 20:10-14
When thou comest nigh unto a city to fight against it, then proclaim peace unto it. And it shall be, if it make thee answer of peace, and open unto thee, then it shall be, that all the people that is found therein shall be tributaries unto thee, and they shall serve thee. And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it: And when the LORD thy God hath delivered it into thine hands, thou shalt smite every male thereof with the edge of the sword: But the women, and the little ones, and the cattle, and all that is in the city, even all the spoil thereof, shalt thou take unto thyself; and thou shalt eat the spoil of thine enemies, which the LORD thy God hath given thee.
So the "warning" they received was actually a choice -- slavery or death (for the males) and rape (for the females.
These guys were squatters on land that wasn't theirs, and they had at least 430 years advance warning.
Ah, but the land was theirs -- the Israelites gave it up it fair and square.
Remember, the Israelites
abandoned their land to escape a drought, and entered Egypt when one of their own (Joseph) ruled it. They had no reason nor intention to return -- why should they? They had been given the land of Goshen.
Of course, things went south for the Israelites after that, but they have nobody to blame but themselves -- they overstayed their welcome.
Long story short -- the Israelites traded up in real estate, then wanted to renege on the deal when it went down the tubes.
And not only were they living in hostile territory that belonged to them, they were living under kill-or-be-killed conditions.
Kill or be killed by the Israelites -- who wanted to steal back the land they abandoned.
God imposed martial law, and knew in His foreknowledge that anyone left standing would later become a thorn in their side; which is exactly what happened when Solomon died and the kingdom went into disarray because of foreigners.
Indeed -- kill them all so that you don't have to deal with them later.
That's God for you -- as bloodthirsty as His followers.
I have a feeling you guys have been watching too many Hellywood war movies.
Consider this:
A is given land, but goes down to Egypt to live, and B moves in and sets up shop in A's land.
After A abandons it. You do know what "abandon" means, don't you?
A eventually leaves Egypt and goes back home, but is forewarned that B is now squatting on A's land, and will kill them on-sight.
A's former land, that is. I'd kill an intruder in my home as well.
A moves in under martial law and begins reclaiming its land.
Not their land anymore -- and who told B that martial law was in force?
It would be a very foolish thing for A then, after reclaiming their territory, to attempt to live in harmony with the invaders (B); as partisans would form raiding parties and strike back.
Got it backwards, AV -- Remember, A's people are only the descendants of the original inhabitants (the ones who abandoned the land); not a single one of them had ever set foot on this land before.
That means
A are the invaders now.
In any event, I don't expect you to fully-understand this, as your word choices give you away.
Justify slaughter any way you want -- if we read the Bible as a history book, we must always remember that history books are written by the winners, who are under no obligation to paint themselves in a negative light -- so of course God is going to bless every act of war.