Shutter speed does not affect depth of field. However, if you are trying to create a deep depth of field by using a small aperture, you will need to reduce your shutter speed (and ISO) in order to ensure the correct exposure.