The castle doctrine pertains to your domain mainly. But what you are referring to is running away. That is not the case anymore. Many states now and have had the “ stand your ground” law. So, no you don’t have to run away if you think fighting back is the only alternative to saving your life.