If a defendant's sentence includes a term of confinement or imprisonment, the convicting court may, as part of the sentence, prohibit the defendant from contacting, during the term of the defendant's confinement or imprisonment, the victim of the offense of which the defendant is convicted or a member of the victim's family.
Tex. Code Crim. Proc. § 42.24