No it isn't. 40.4 TOTAL.
500 are democrats
500 are republicans
If voter turnout was 40%, that means 400 out of the 1000 voted. Which means 200 of each party roughly. 200 / 500 = 40% of Republicans voted, and 200 / 500 = 40% of democrats. Don't quit your day job.