Avacyn Archangel + Ultimate price

I played an "Archangel Avacyn" in AI's turn, and in response it played an Ultimate Price on it and detroyed it. I think that shouldn't be legal, because I guess that to target Avacyn it should've entered the battlefield first, and because of that it should have indestructible, but maybe I'm wrong
Can someone explain to me if I'm right or not?
Thanks
Can someone explain to me if I'm right or not?
Thanks