filing an extension only gives you extra time to file your tax return (generally until October 15), but it does not give you more time to pay any taxes owed.
To avoid penalties, you must pay at least 90% of your total tax liability (or 100% of last year’s tax) by April 15, even if you file for an extension.