Yes, idolatry was their sin. The gods before God were mere idols.for the record----the phrase "thou shalt have no other gods
before me" -----is a TRANSLATION of a Hebrew phrase.
It is IMPRECISE as translations USUALLY are-----a more accurate
translation (from the hood) would be -----"you gonna get all
your other concepts of "god" OUTTA MY FACE"
bad translation