Of course not! It was given to enable humans to participate in their Creator’s purpose ​ — to make the earth into a global paradise home for a race of perfect humans forever.
قَالَ لِآدَمَ :‏ « أَمَّا شَجَرَةُ مَعْرِفَةِ ٱلْخَيْرِ وَٱلشَّرِّ فَلَا تَأْكُلْ مِنْهَا ،‏ لِأَنَّكَ يَوْمَ تَأْكُلُ مِنْهَا تَمُوتُ مَوْتًا » .‏