Replacing the Heating Element

What is involved in replacing a broken heating element? Can I just pull the old one out and put the new one in its place or will I have to pull the unit out to do this?