Yes- I prefer a rights-based approach. Using that, sacrificing the innocent, may sometimes not actually violate their rights (like in the previously mentioned examples I've given (Vaccine during epidemic, starship under attack)

But murdering an innocent who is not in this kind of danger, always violates their rights.