No, Aikenhead was never pardoned. He was convicted of blasphemy and executed in 1697 at the age of 20, becoming the last person to be legally executed for blasphemy in Great Britain. His execution sparked outrage and led to the eventual abolition of the death penalty for blasphemy in England in 1698.
Unveiling The Blasphemy Chronicles: The Life and Legacy of Thomas Aikenhead