By the way, it's important to note that there's a difference between "blurry" and "out of focus". I like to think of the difference as "side to side" vs "in and out".
"Blur" is typically used to describe the effect of motion between the subject and the sensor. That's caused either by the motion of the subject, or the motion of the camera (including camera shake and vibration). This is the sort of thing that's helped by tripods, shutter speeds, and image stabilization. It's also not necessarily bad; some blur can help imply motion on the part of the subject.
"Out of focus" is used to describe problems with the distance between subject and sensor, given a particular lens focus setting. Most of the time you want your subject to be in complete focus. Depth of field (which is controlled by aperture) can help achieve this. However, most of the results are determined by the focusing system itself, either you (for manual focus) or the autofocus system of your camera. The latter can be quite complex and tricky in low-light; different cameras and lenses will have different behaviors. That's why you'll often see the little light from your camera turn on before a shot; the AF system needs a minimum level of light in order to do its work.
They're two different things and require two different types of corrections. It's important to know what you're dealing with beforehand.