Yes, you can make that payment to the IRS. Just be certain that your name and SSN are an exact match to your Form 1040 tax return, and that you indicate the payment is for 2018 Form 1040.
In TurboTax, as you complete the request for extension, there is a place to enter the amount being paid with the extension. Enter the amount of your directpay payment there, so it is accounted for later, when you complete and file the tax return.