You might think so, but I tend to doubt it. But let's try a couple of examples:
Let's assume that you are on a low bridge over a flooded, raging river. Just downstream is cataract dropping into a rocky canyon, certain death for anyone going over the edge. Coming towards you are two children, trapped in the flood. You can save one, but not both of them, as the are separated in the flow. One of those children is your own. Which would you save?
I don't think anyone would condemn you for choosing your own child over a stranger, and I think most people would make that same choice. But now, replace your child in the water with your beloved pet. Would you allow even a stranger, a child you do not know and love, to die in order to save your pet? I very much doubt it! I think there are few sane people in this world who would.