If you enroll in a qualified HDHP midyear,* you may still make the maximum annual contribution into your HSA. However, you must remain enrolled in the plan until the end of the following calendar year in order to avoid potential tax issues.
* You need to enroll in a qualified HDHP prior to December 1.