The short answer no. The longer answer is it depends, because women, like men, adore getting compliments.
So yeah, you can compliment a girl over text. Just bear in mind, it should be complimentary and not flirty. Something like “it’s so nice talking with you” or “you look great today” will make her day.