Actually not true.
In particular,
a 2013 study ordered by the Centers for Disease Control and Prevention (CDC) and conducted by The National Academies’ Institute of Medicine and National Research Council reported that, “Defensive use of guns by crime victims is a common occurrence”:
"According to U.S. Justice Department victimization studies analyzed by Kleck, for both robbery and assault, victims who used guns for protection were less likely either to be attacked or injured than victims who responded in any other way, including those who did not resist at all; and victims who resisted robbers with guns were less likely to lose their property. A follow-up study of rape found that using a gun or knife for protection reduced the likelihood of a completed rape, and using a gun reduced the likelihood of injury to close to zero. "
https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1745-9125.2004.tb00539.x
"Citing four separate studies between 1988-2004, the assessment from the
Institute of Medicine and the National Research Council says crime victims who use guns in self-defense have consistently lower injury rates than victims who use other strategies to protect themselves (other strategies include stalling, calling the police or using weapons such as knives or baseball bats)."