Spider-Man was indeed created before the death of the Marvel Comics creator. The character first appeared in the 1960s, and the creator lived for many years after that. Stan Lee's contributions to the Marvel universe were significant, and Spider-Man was one of his most famous creations.
Yes, Spider-Man was created before the death of the creator of Marvel Comics. Stan Lee, one of the key figures behind Marvel, passed away long after Spider-Man's creation.