Of course. The law is just second-rate ethics. It's less ethically fulfilling because the law has to account for all kinds of practical limitations that comes from trying to manage tons of people at once.
But for you, at some given moment, you aren't bound to those same practical limitations, because you aren't trying to account for tons of people. You are trying to do something like save the life of a loved one, or something like that. So, you can do anything that falls within the viable realm of your own ethics. These things do, however, get you in trouble with the law often times (like, for instance, when it may be a really good idea to kill someone). That's because law writers, practioners, and enforces can't afford to see and account for ethical nuances the way one person right in the situation can.