Eh... Architecture can be art...
But first and foremost, architecture should be aiming to make comfortable, convenient, and useful places for people to live or do things.
Art is a nice bonus (if budget and time constraints allow), but it's perfectly valid to build ugly utilitarian buildings if those buildings accomplish what you need them to do.