It is not inherently cheating. It entirely depends on context, and as a prior post mentioned, the rules of the relationship.
If it's a normal, casual and/or narrative-based roleplay, without any ERP or romance, then no. That's not cheating. If there isn't ERP, but both of their characters get...