Absolutely. That was the main goal of the Spanish and Portuguese Inquisitions. Everything that was deemed "unsafe" for public consumption was censored and it was mostly related to French napoleonic propaganda. Spanish and Portuguese artists at the time who were in favor of Napoleon also had a very hard time and spent many days in jail, like Goya, for instance.