Is asking someone if it's okay if I text them a bad idea?

I haven't spoken to this person in a while so I thought it was smart to ask because receiving a random text from somebody is something I don't like.
Is asking someone if it's okay if I text them a bad idea?
Post Opinion