I can never see the point in glueing something which you are nailing/screwing anyhow.
It, if waterproof, will help to prevent ingress of water into/through the joint, which may well swell the wood and reduce the useful life of the item.
Nails are good if put in 'on the tosh' but otherwise are to keep things in place laterally to the nail head. Can't beat screws for making sure the joint is pulled together, if cramps are not available while glue sets completely. A tight wood-wood contact is obligatory I expecting the best from a thin film glue, such as PVA.
RAB