No. The SpongeBob SquarePants theme song was written by:
Performed by Patrick Pinney (singing) with Painty the Pirate (voiced by Hillenburg). Avril Lavigne has no writing or performance credit. She covered "SpongeBob" songs for The SpongeBob SquarePants Movie soundtrack (2004) – "SpongeBob SquarePants Theme (Remix)" – but didn't write the original.