Yes, It Must Be
Your Green Card must be valid (not expired) when you apply for citizenship. If expired: renew first (Form I-90).
Card Expiring Soon?
Apply for citizenship before card expires. Processing takes 8-12 months. If processed: you're fine. Card replacement happens automatically during naturalization.