HDDs themselves are hot-pluggable, so no you don't need to take out the battery to replace it.
That being said, it really depends on the exact internals of your laptop and how you get to the HDD. There may be something else in the way that you would want to disconnect the battery to get at.