I'm pretty sure the answer is
From checking the internet, it seems that the film was but the book wasn't.
Some sources that might help:
Books banned by governments- Wikipedia
Most commonly challenged books in the US - Wikipedia
Banned books and list of reasons why - Postdesk
Banned books - banned books org
Ctrl - F 'danish' comes up with nothing on ...