I can't see Michael walking away from any source of money, including drugs and prostitution. I think he probably had the same arrangement with Pentangeli that real-life Dons have with their underlings: Don't get caught dealing drugs, but when you kick money upstairs, I won't ask where it came from.