Yes. Health savings account (HSA) contributions for the eligible individual's taxable year (which, for almost everyone, is the calendar year) must be made by the income tax return filing date for that year.
For example, all contributions for 2020 would have to be made by April 15, 2021, the date for filing the 2020 federal income tax return, without extensions.