This will depend on the style of pet or dog photography you will be doing.
A lot of dog photographers will use a 70-200mm lens and a 24-70mm lens. Both these lenses do not need to be f2.8.
A lens with an aperture of f4 will work perfectly well for pet photography.