Can you vote if incarcerated in prison?

Maine and Vermont are the only states that allow convicted felons to vote while in prison. (by absentee ballot) Other states allow convicted felons to vote after they served their terms and in some states they lose their right to vote permanently.