Yes - the motor controller has some large capacitors
Normal procedure is
Power the controller "brain" - normally 12v
power to one of the contactors
You will normally have a contactor (high power relay) in each leg of the battery
Pre-charge
If you close the second contactor you will get a damaging power surge
So you use a resister (I am using an old kettle element) to moderate that surge
When the voltage has climbed enough THEN you close the second contactor
Some controllers do this internally (Soliton)