Yes, but two conditions apply: you have to buy it, and you need the base Sims 2 — or Sims 2 Double Deluxe — installed to play it.
The Pets content is an expansion pack rather than a standalone game, so it will not run on its own.