Given it was God who commanded them to kill them all one would think so.
All I can say is I am glad that i was not in their (the Hebrew’s) shoes. And neither will I pass judgement against them, either.
It is hard to comprehend what occured and why God said what He did, but in the end, I can know that the young ones (who were not of the age of accountability) made it to heaven. I’ll concentrate on the last part and leave the rest alone.