Yes.
Each state differs with respect to the specific instances in which the Castle Doctrine can be invoked, and what degree of retreat or non-deadly resistance (if any) is required before deadly force can be used.
In general, (one) or a variety of conditions must be met before a person can legally use the Castle Doctrine:
As of the 28th of May, 2010, 31 States have some form of Castle Doctrine and/or Stand Your Ground law. Alabama,[9] Alaska, Arizona, California, Florida, Georgia, Illinois, Indiana, Kansas, Kentucky, Louisiana, Maine, Massachusetts, Michigan, Mississippi, Missouri, Montana, North Carolina, North Dakota, Ohio, Oklahoma, Pennsylvania, Rhode Island,[10] South Carolina, South Dakota, Tennessee, Texas, Utah,[11] West Virginia and Wyoming have adopted Castle Doctrine statutes, and other states (Montana, Nebraska,[12] New Hampshire, and Washington) are currently considering "Stand Your Ground" laws of their own.[
These state use differing forms of Castle Law:
An intruder must be making (or have made) an attempt to unlawfully and/or forcibly enter an occupied residence, business or vehicle.
The intruder must be acting illegally—e.g. the Castle Doctrine does not give the right to attack officers of the law acting in the course of their legal duties
The occupant(s) of the home must reasonably believe that the intruder intends to inflict serious bodily harm or death upon an occupant of the home
The occupant(s) of the home must reasonably believe that the intruder intends to commit some other felony, such as arson or burglary
The occupant(s) of the home must not have provoked or instigated an intrusion, or provoked or instigated an intruder to threaten or use deadly force
The occupant(s) of the home may be required to attempt to exit the house or otherwise retreat (this is called the "Duty to retreat" and most self-defense statutes referred to as examples of "Castle Doctrine" expressly state that the homeowner has no such duty)
per Wikipedia
Read about individual states here