You don't state in your question, so this answer assumes that you have a learner's permit, you were legally driving the car involved in the accident and were driving in the car involved in the accident along with an appropriate licensed individual. (If this assumption is not correct, then disregard the following information as your situation then becomes more complex.) A learner's permit, license or right to operate can be suspended or revoked in Massachusetts due to a series of major and/or minor traffic offenses (civil), as well as serious offenses (criminal). According to the Massachusetts Registry of Motor Vehicle's website, one accident does not trigger suspension or revocation. Read more at: http://www.mass.gov/rmv/suspend/index.htm
None of the information or materials posted above is intended to constitute legal advice. Viewing this does not constitute an attorney client relationship. Local counsel should always be consulted before contemplating any legal action. The above information is general in nature and should not be undertaken without the express advice of an attorney of your choosing.
I absolutely believe your right to get a driver's license can be impacted if you were driving illegally (unclear in your questions). If not -- if this was a learner's situation -- the impact will lessen. Sit down with an experienced traffic accident attorney that has worked with the Department of Motor Vehicles in Massachusetts for a full understanding of the possibilities.
In no way am I offering you legal advice, and in no way has my comment created an attorney-client relationship. You are not to rely upon my note above in any way, but insted need to sit down with counsel and share all relevant facts before receiving fully-informed legal advice. If you want to be completely sure of your rights, you must sit down with an experienced criminal defense attorney to be fully aware of your rights.