 In 2018, Carvalho did not run for reelection in his seat, instead launching a campaign for the Democratic nomination for Suffolk County District Attorney.He lost the primary to Rachael Rollins, finishing third in a field of five candidates.In 2006 he was a legal intern with the Immigration Law Project at South Coastal Counties Legal Services, Inc. in Brockton, Massachusetts.