No, there is no maximum. However, you may get member fatigue if you make the form too long!
If some of the questions are only relevant to some, but not all members, consider using a radio button or multi-radio button question to subdivide the form up, so members are only presented with questions that are relevant to them.