Yes, you can charge a battery while using an inverter. The inverter connects the battery to solar panels and electrical loads. Make sure the inverter supports both charging and load use at the same time.
[pdf] In our comparison of the best 5kW hybrid solar inverters, BSLBATT’s 5kW inverter BSL-5K-2P performs best with a maximum efficiency of 98% and a European efficiency of 97%, while the majority of inverters such as Deye, Goodwe, and Growatt have a maximum efficiency is typically 97.6%.
[pdf] The Alternating Current Distribution Box is referred to as ACDB. It is positioned between your home appliances and the solar inverter. Two of the many parts of an ACDB box are the most important. 1. By earth.
[pdf]