It's okay if you're bitten by a healthy dog. Rabies virus can be transmitted to people through several dogs three to five days before onset.
As for the rabies vaccine for pets, it is a defense function. It is recommended to vaccinate everyone. Your dog can be immunized against rabies when it comes into contact with a sick dog. This is a concept with human rabies vaccine.