Yes. Recently they even went a step beyond the traditional "shared source" thing by releasing it under the Apache 2.0 license.
http://aspnetwebstack.codeplex.com/
Less so with MSSQL. But it's less of an issue there, because MSSQL provides a very good view of what's going on under the hood to begin with, and Microsoft has done an extremely good job of documenting the whole thing.