Question: What law banned books favoring Freemasonry?
Sentence: The 1917 Code of Canon Law explicitly declared that joining Freemasonry entailed automatic excommunication, and banned books favouring Freemasonry.
Answer in sentence: yes