Generally, yes. There may be a question of whether the preliminary work was necessary, but work done in the EEOC before bringing a federal lawsuit is clearly necessary, since filing a charge with the EEOC and getting a Notice of Right to Sue is required before you can file a lawsuit in federal court alleging discrimination based upon sex, race, age, religion, or national origin.