I think this falls into the "you can do it but if you screw up it's your problem" category.
To be safe, just keep the original HDD and put it back in before going to Apple store for warranty service. Unless you damage something, there is not way to tell that you opened it.