Yes, you can make contributions in the current year for the past year, but you have to make them before the tax filing deadline which is on or around April 15. After that, all contributions will go toward the current year. For more information on how to do this, refer to the article How do I deposit money into my HSA?