Is this just a common courtesy thing?

To tell someone you're hooking up with (by that I mean sex) whether you're dating someone or not? I just feel like that's the respectful thing to do not only to the person you're messing around with but also to your SO. Right?

And I mean if they are in an open relationship not cheating.