Yes, you need to duplicate your frontend business logic on the server

from blog Bite code!, | ↗ original
Yes, even if you use WASM or Pyscript