No, deleting spam emails will not cause any harm to your iPhone. However, it is necessary to be cautious while deleting emails from your inbox to avoid accidental deletion of important emails.