No, by that logic murder shouldn't ever be investigated to begin with. After all, a dead victim can't call for an investigation!
The reality is that the state prosecutes victimless crimes all the time, and will also sometimes prosecute a crime against the express wishes of the victim if they believe that it's needed. That's expressly part of the DA's job.