You can if there's a direct threat to your life (i.e. you can see that the intruder is also armed).
But you can't use it against someone for just entering your premises illegally. It needs to be a clear and present danger.