No, it’s not safe to open a text from an unknown number, it may contain spam links.