Possibly. It depends on a number of factors, including what the person said in the text. Evidence rules also vary be state criminal procedure code. Consult an attorney about the specific situation.
Yes, being drunk is not a defense to something being admissable in court. If the evidence from the texts is relevant to the case, the judge would generally allow it, even if the sender was intoxicated at the time.