Yes. Provided everyone else is loyal and the ship is upgraded, you can do the following...
1. Send Legion/Tali/Kasumi into the pipe with Miranda/Jacob/Garrus as team leader
2. Send Mordin/Tali/Kasumi/Jack to escort the crew bak
3. Choose Samara/Jack for Biotics and Miranda/Jacob/Garrus as team leader
At this point you have the following...
Grunt/Garrus/Zaeed = 3 * 4 = 12
Miranda/Jacob/Legion/Samara = 4 * 2 = 8
Thane = 1 * 1 = 1
Three of Tali/Kasumi/Mordin/Jack = 3 * 1 = 3
That's (12 + 8 + 1 + 3)/(3 + 4 + 1 + 3) = 2.18 average score.
At this point you need to do two things.
1, do NOT take Thane to the final battle
2, do NOT let the score go below 2.0 average. This means you can't take two of Garrus/Grunt/Zaeed, for example. You could, however take, say, Miranda + Garrus. This would result in (8 + 6 + 1 + 3)/(2 + 3 + 1 + 3) = 2.0 score, so everyone lives. In fact, you can take one of the "top defense" people and ANY non-Thane other people. Or, of course, any non-two non "top defense" people (like Samara + Jack).