Not at the point of generation, but at the point of training it was. One of the sticking points of AI for artists is that their developers didn't even bother to seek permission. They simply said it was too much work and crawled artists' galleries.
Even publicly displayed art can only be used for certain previously-established purposes. By default you can't use them for derivative works.