Yes. .Net is platform independent. Code written using any language is compiled into MSIL which is executed by CLR(common language runtime). MSIL is not machine dependent. But, Microsoft has written CLR for only windows. If CLR is available for other platforms, .net code can be executed on other platforms.