Yes, someone can hack your phone by texting you. Such methods are called smishing or phishing. These attacks allow hackers to access your phone through texts.