That's not correct. The Castle Doctrine means you don't have a duty to retreat from your home before using otherwise justified deadly force. But it still must be otherwise justified.
Unless they’re doing a Goldilocks, anybody in my home uninvited is assumed to be hostile. Anybody attempting to enter by force is assumed to be hostile. Does that mean I’m immediately going to use deadly force? No, but it does mean I’m prepared to do so.