For the most part, you don't have to change any code and it will export to all supported platforms. In practice, though, there can sometimes be small issues (especially on mobile and web) because not all platforms support the same features. For example, mobile uses different texture compression, HTML5 does not support a lot of advanced effects. But the code doesn't need to change, though you might have to adjust the project or export settings.