if you or someone life is in danger then yes. pull the trigger but dont empty your clip into him.
and if they have used the wepon and hurt or mained someone you have the right to shoot them. and try to stop them, if you so desire to posibly be a victim too.
but once the threat is gone . you best not shoot unless you work as a leo they get away with it.