This should be possible. According to the MSDN Documentation(Installing Visual Studio Versions Side-by-Side) you can install them side by side.
You can't however open a VS2010 project in VS2005. So you need to keep your work strictly separated between those versions if you want to be able to open your project in VS2005.