Absolutely, AO3 could choose not to archive it.

However, what Archive of our Own does choose to do is to archive the maximally inclusive amount of content, so long as that content does not break the law of the country it is hosted in.

AO3 does not draw moral lines in terms of what can be uploaded, only legal ones.

context link