I was self employed for 6 months in 2016, can I deduct all of my 2016 health insurance?

In 2016 I divorced and started purchasing health insurance on my own in March.  At that time i was self employed.  In July I became an employee with the same company and continued to purchase my own health insurance.  Can I deduct all of my health insurance premiums for  2016?