If so, glue and screw. Lay a bead of construction adhesive (PL-400 or equivalent) down on the joists before setting the TONGUE AND GROOVE subfloor (3/4" ply or OSB?) down, then either nail off with spiral cement coated nails or screw down with screws that are a minimum of 2" long.
3/4" fir ply or Advantech OSB is the all I'd consider for a subfloor, and T&G is mandatory for adequate stiffness.
Code dictates the fastener pattern, in my locale you'd need to screw every 6" around the perimeter to the ply and 8" in the field. 18" would get you red tagged by the building inspector.
If this is an existing house where the finished flooring is already down, your post doesn't have enough details to allow me to provide decent advice.