I spent a year in a recovery program in MA. My state returns ask if I’ve been incarcerated or spent time in a halfway house. Does that count?

Was section 35, which is for alcohol abuse among other things and spent the year in a sober program house, so halfway house with more rules. 
Based in MA