3" framing nails will be fine for partition walls for say, in a basement.
It would help when you post, you say what you're doing, not just the material you're using.
Sometimes the job will be inappropriate for the materials used and this way we can head off any misadventures in carpentry.
A forum community dedicated to Do it yourself-ers and home improvement enthusiasts. Come join the discussion about tools, projects, builds, styles, scales, reviews, accessories, classifieds, and more! Helping You to Do It Yourself!