Yes, in order to hack the SMS message history, the app needs to use the permission given to the hacked TikTok app to access it. In the absence of such access, tracking another person's SMS through TikTok will not be possible.