Yes, for the most part. The important question is going to be whether you did anything to provoke the dog into biting. Provocation can be established if you were yelling or hitting the dog, or if you were in the dog’s face and acting aggressive towards it. In some cases, grabbing a dog’s tail or ear can be enough to provoke it to bite. However, simply walking up to a dog in a friendly manner and petting it will generally not establish provocation.