Unity 4 compatibility to Unity 5 WebGL

I’m planning to use Unity 5 WebGL for a Browsergame.
If I start to create a game with Unity 4 now, can I convert it to Unity 5 and publish it for WebGL or do I have to begin from scratch in Unity 5?

You can start in 4.x.