Question: is it grammatically correct to say he or she?
Answer: Do not use either he or she alone to refer to a generic individual—"use of either pronoun unavoidably suggests that specific gender to the reader" (PM § 3.12). Do not alternate between he and she (e.g., using he in one sentence and she in the next), as this can also become confusing and distracting to the reader.