First, if there is a protective order, pretrial no-contact order, jail release agreement, or any other order that prohibits contact or communication, then you should NOT have ANY communication or contact with your spouse, either directly or indirectly (through another person). Utah law provides that a violation of any such order or agreement can result in additional criminal charges, even if your spouse invites or encourages communication or contact. Prohibited communication can include face-to-face conversations, email, text messages, chat apps, written paper letters or notes, or any other act intended to pass information, messages, or questions to your spouse on your behalf.
Second, if there is no legal order or other prohibition on communication, you should still be very cautious about the topics or subject matters of any communications with your spouse. Any communication relating to the facts of the case or even the procedural status of the case could potentially cause police or prosecutors to suspect witness tampering or obstruction of justice.