Yes. Boston is the capital city of Massachusetts—and has been since the colony's founding in 1630. It is also the state's largest city and economic/cultural hub.
The source text contained a contradiction ("No... The capital is Boston"). The correct answer is unequivocally yes.