Yes, and that is something that ought to be illegal too.
Whether you're a bad person or not is not for me to say, you can make that judgment for yourself. Personally I would refuse to build such a feature and likely it would cost me my job. Then someone else, maybe you, would step in to do it anyway. So in the end my resistance would amount to 'nothing'. But I'd sleep a lot better because of that, as long as you don't lose sleep over it you're doing fine.
We all get to make these decisions on an individual basis.