Yes, gym flooring can be installed over carpet, but it is recommended to use interlocking or modular tiles that provide a stable and flat surface. This helps to prevent shifting or buckling of the flooring during workouts.