They might not replace your computer if you mess it up while taking it apart, but you're not going to have a problem getting support with a new hard drive.
My coworker replaced the keyboard in a MacBook Pro and when he called to ask AppleCare if they would still honor the warranty they said yes.