Newton's 2nd is correct for all inertial forces wherever they exist in a system. But there are also other forces: gravitational forces, electrical forces, magnetic forces, frictional forces, weak forces, strong forces, electromagnetic forces, elastic forces,
molecular forces, atomic forces...