You can, though I recommend using Aperture Priority mode; it lets you select the exact aperture you want to use. Portrait mode tries to make decisions based on available light and can give you apertures that are wider or narrower than what you might want.