Should I file as married filing separately to avoid paying the health insurance penalty?

I got married in June. Until then I couldn't afford health insurance. After we got married, my wife made enough that we could afford it, but I still didn't get any. Is there a way to avoid the penalty for at least the first half of the year?