Was Pius V right to excommunicate Elizabeth I?

Was Pius V right to excommunicate Elizabeth I?