Yes, depending on what actions you have taken compared to your normal daily activities you may face civil action or even criminal charges for spying on your spouse.
If you are caught spying on your spouse intentionally or recklessly in a way that you should have known would result in discovering private information then your spouse may be able to make a civil claim against you for “intrusion upon seclusion”.
If you install spyware on a computer or other electronic device for the purpose of spying on your spouse then you could face criminal charges. Additionally, If you secretly record conversations including your spouse which you are not involved in you may be charged criminally. It is not a crime to record a conversation which you are a part of.