And you shall not bring an abominable thing into your house and become devoted to destruction like it. You shall utterly detest and abhor it, for it is devoted to destruction.
Deuteronomy 7:26 ESV

The abominable character of idols is contagious. Knowingly accepting them into your house will make you abominable in God’s eyes also.