YES (most likely)
If using the Revised ranger.
The revised ranger states that the animal uses your proficiency bonus for its own purposes AND is added to AC, skills, saving throws, attack and damage.
(the skills part may be a counter argument)
Also, the revised companion gains attributes when you do, so this also raises the question on what happens when ...