So the answer is yes: The software can do the updating whether you are charging or not. The charging does not prevent the update from doing its job. It's the reverse: The update would stop the charging until the updating finishes its job.
When the updating process stops the charging, it's possible that since the car is still plugged in, Tesla might charge the Supercharger idle fee if the duration meets the idle criteria.