It's not inherently unethical, that would be a very extreme, purely deontological rather than consequential/utilitarian, position to take.