Yes Frank you can- BUT the object can't move and your camera needs to be on a tripod if you want "perfect" results. Also no change of aperture or in fact anything else- just put your camera on manual focusing and shift the focus that way- don't touch anything else!
Stef.