Technically, yes because in the episode where it's the eleveny seventh birthday o the Krusty Crab, they start to remember things. Spongebob says "Remember when me and Sandy got married?" In his flashback the get married, but in a play. So realistically the didn't gt married but in a play, they did.