Boston is pretty much the safest big city in the country, but I concur with what others have said about precautions and situational awareness.
One thing to be aware of is there are rolling shutdowns on the T subway lines due to track and signal replacement. (50 years of minimal maintenance finally came to a head.) The MBTA website lists these shutdowns and shuttle bus replacement service. Orange Line | Subway | MBTA)