Unplugging battery when removing 1 of 2 ram sticks

I have 2 sticks of ram in my laptop and forgot to unplug the battery when removing one of them, will the laptop be ok.