Should I replace nails in a plywood subfloor with screws to the joists?
You should not need to remove the existing nails.  Driving a new screw into the joist adjacent to the nails should be sufficient.

You may need to countersink the screws to get them to sit flush.