I don't know that I can categorically answer your question in this setting. However, there is an appellate court opinion that holds if the "purpose" of the communication is itself legal, then it cannot be "immoral." The case involved an older adult proposing sexual contact with a 16-year-old, who was of the age of consent.
If you have more specific questions or want a fuller discussion of the certainty and uncertainty of this law, I urge you to retain counsel to research the question and consult with you regarding the facts of your situation. The laws are complex and the consequences can be very serious.Ask a similar question