Yes, you can make contributions up through April 15, 2017, as long as you were eligible in 2016.
You can also use distributions from the HSA to pay any medical bills that occur after the date you opened the HSA, including medical expenses incurred in 2017 or later, even if you are no longer eligible to make contributions. There is no need to spend out or close the HSA.