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.
Ron