Maybe. The odd thing is I never watch much SpongeBob so I don't know if it was that. Maybe the suicide Squidward creepypasta influenced my dream too now that I think about it.
There are some gross gags in Sponge-Bob gags post-season 3 that might've also influenced your dreams like the scene where the sofa landed on Squidward's toe.