Yes, it is possible to add other ions while solvating a system for an MD simulation in addition to NaCl and MgCl2. The choice of additional ions would depend on the specific system being simulated and the scientific question being addressed.
The specific steps to do this will depend on the MD simulation software you are using. For instance, in GROMACS, you can use the "genion" tool to replace solvent molecules with the desired ions to achieve the desired concentration.
It is possible to add other ions to the solvent the system in addition to NaCl and MgCl2 during a MD simulation. But, it is important to consider the effect of additional ions on the simulation results and the choose of the appropriate ion concentration are based on the strudied system.