They CAN understand.
And YES, it's possible for your animal to be trans. Your pet having a penis does not make it "male". It's animal abuse to misgender your animals.
-
Also, aren't most dogs that aren't used for breeding spaded or neutered? If so, they technically don't have a gender, do they?