Yes texts can and very often do end up being used in court. Parties will often attach copies of text messages received and/or sent as proof of claims in documents provided to the judge. It is integral that you text carefully and politely during a separation or your texts may very well end up as your spouse’s best evidence against you at trial.
Texts can be used as evidence of your ability to act as a parent and it can also be used as evidence that you have been harassing your spouse. In some situations the court has even considered certain types of aggressive texting to be an act of violence against a spouse.