Yes. Be gently on the inverter. I myself use a 60V laboratory power supply. This way I can use one piece of equipment for 12, 24 and 48 volt inverters. And not just to charge up the capacitors but also test MPPT’s.
The official way to do this is to wire up the remote voltage sensing via a 2A fuse or breaker. This is then closed first, and the main caps charge through the internal 120 ohm resistors that are designed for this function.