Yes, but not directly. First, the Ranger would be built as the other subclass; second, the Animal Companion would be a (homebrew) animal-as-a-PC race with normal class levels (probably in Fighter, Rogue, or Barbarian).
In other words, the idea of the player's character being an animal companion...