Is satanism illegal?

No, at least not in the US and the Western world. It is illegal in much of the Middle East.