That'd be the ideal thing, when ever applying DC to the inverter precharge it. You could put it across the breaker in that situation but only if you don't have any other loads connected at the time as they will try to run via the resistor and will also discharge the capacitors in the inverter once you remove the resistor (you could turn the breaker on while the resistor is still in place).
There is a better way. You'd have a 3 position switch in line with the breaker. The breaker goes before the switch. The three positions are off, pre-charge, on. The resistor goes permanently between the pre-charge and on positions, DC from the battery goes to the common terminal on the switch. The inverter goes to the on position. Then it's just a case of move switch to pre-charge position, wait a bit, move to on position and you are ready to turn the inverter on, when you leave rotate switch to off position (if ytou want to turn the inverter off that is)