No. The Spanish Tragedy (c. 1587) was written by Thomas Kyd. It is the seminal Elizabethan revenge tragedy that heavily influenced Shakespeare’s Hamlet—ghost, play-within-a-play, mad heroine, bloody climax. Some early editions misattributed it to Shakespeare, and he may have revised the 1602 additions, but the core play is Kyd’s.