When the actions you would take if you were acting entirely out of self interest and the actions that are the most ethical align with each other, then it's okay to take those actions, which is the case here and that's fine. I just mean that the primary reason shouldn't be self interest.