Yes. The police often do stings and pretend to be prostitutes on craigslist. I have represented many clients for this exact situation.
"...a brief email and txt messages..."
Solicitation is not sex, it is communication seeking sex for money. It appears you did that. Therefore, you could be so charged.
The foregoing is for general information purposes and does not establish an attorney-client relationship.
Obviously the content of the emails / texts are important, but based on what you have written, you can be charged. You should discuss this with an attorney and refrain from posting any more information on this site.