I've done it many times. On some computers (like Dell Latitude) it's very easy to do: just a couple of screws at the bottom, and then it slides out: takes just a couple of minutes. But on some computers it's much more work: sometimes you have to remove the keyboard, etc.
I suggest you search the Internet on how to replace a hard drive in your specific brand/model. You can often find detailed instructions or even YouTube demonstrations.