I did that just recently with my D500 and Nikon 16-85mm f/3.5-5.6 lens. I think at the focal length I had it set on, the aperture was around f/5. I also had the camera in AF-S, single point focus, and normal AF area. It worked great. What lens do you have? Maybe it won't work with third party lenses.
Yes, I said I set AF-S and normal area and I only tried Nikon lenses.