You cannot be scammed through a spam text. However, if you engage in other actions like clicking on random links, you can fall for the scam or give hackers access to your device. So, as a rule of thumb, do not exchange messages or reply to unknown senders.