Yes, you can have a pet in Dragon Age: Origins, in the form of a Mabari War Hound. If you're playing a human noble, you already start with one. If not, you can get one at Ostagar. Speak to the kennel master there, and he'll give you a quest. Once you complete that quest and your main objective at Ostagar, you'll run into the dog as you head toward Lothering, and it'll join your party.