Yes, if someone has hacked your phone then he or she can surely read your text messages. And, to do the same one needs to install a tracking or spying app on your smartphone.