It depends on the situation. If you've just gone out a couple of times and the connection is just developing, I would not text back right away. Make yourself a little hard to get as it makes you more desirable in the other person's eyes and not so easy. On the other hand, if a super strong connection has been made and both of you can feel it and express it, then I would say its totally fine to text back right away.
Most Helpful Guys