Screw don't nail, if you'll pardon the expression :lol: and I'd fix them at about 300mm (max) centres along the length of the ceiling joists, to minimise any annoying squeaks later.
It may be an old wives tail but did it used to be recommended to put carpet underlay or something similar...