This is why God commanded the Israelites to kill all the Canaanites, without mercy. It was their sacrificing of children to Moloch.
You are right. Also in Leviticus 20:2-5.