I think that programming can be used in art, just like words, images, animation, dance, acting, performance in general, and physical construction can be used for art. But its not defacto art. Art to me is an act of super-linguistic communication, its the property of an artifact holding meaning imbued from the interior mental states of an artist that makes it art.
It requires the artist to have something worth expressing to be good art. That's why a lot of artists hate AI, because it makes it possible to make lazy unthoughtful zombies of art with no meaning, no detail, no soul. Even when its beautiful and entertaining its still not really art.
I personally think an artist could easily USE AI in an act of interesting art but they need to do enough with it to make it into art.