1 of 6

Can I use the Flash on Aperture priority on a Nikon D40X?

I'm trying to get the background out of focus (bokeh) and using Aperature(A) mode and setting aperture to lowest value.

But I'm also shooting in somewhat dim light and need the flash. Is that even possible? If so, how? (The flash isn't going off in this configuration)