Yes, one of the desert mahonias. May be able to tell which one simply from where it was growing, otherwise different species have different-colored fruits and other diagnostic features.