Should self-employment tax be figured in to the qualified business income deduction calculation?

Turbotax seems to be calculating my qualified business income deduction by taking my total annual profit (just revenue less expenses, no taxes), deducting 50% of my annual self-employment tax, and then multiplying by 20%.  Is inclusion of the self-employment tax correct here?