Yes, if you enter a transaction that requires Schedule D, TurboTax will create Schedule D and include it in your tax return.
HOWEVER, the tag below your question says you are using TurboTax Deluxe Online. Schedule D is not included in Deluxe Online. You would have to upgrade to Premium, or use any version of the desktop TurboTax software.
TurboTax Expert Assist
Get answers to all your tax questions
Our experts are available on-demand, no appointment needed. Get help all year long with TurboTax Expert Assist.