Samuel L. Jackson did not star in the original Die Hard (1988) or its first sequel. The franchise's face is Bruce Willis as John McClane.
However, Jackson did co-star in the third film: Die Hard with a Vengeance (1995) as Zeus Carver, a Harlem shop owner dragged into McClane's game with Simon Gruber (Jeremy Irons). Their chemistry—bickering, reluctant partnership, mutual respect—is widely considered the series' best duo dynamic.
So: not in Die Hard or Die Hard 2. Yes in Die Hard with a Vengeance. Not in Live Free or Die Hard or A Good Day to Die Hard.