No, but it's very nice to be able to share code for things like view rendering or form validation between the server and client without jumping through hoops.
So you use language X. Compile it and run it natively on server, compile it to wasm and run that in the browser.
Why should i use language X that i don't like, instead of nice dynamic language, without compilation step that i like, and which only misses this tiny feature?