Yes, you can. The demo builds of Super Smash Flash 2 supported online play, though it was basic compared with what the fuller releases eventually offered.
Expect some latency and the occasional dropped connection — early fan-made netcode was never especially robust. For the smoothest experience, use the newest build available rather than an old demo.