Yes. After 5 years of legal residence in France, you may be eligible for French citizenship if you meet all requirements (stable income, tax compliance, integration, French B2 level, continuous residence, etc.).
In certain cases (e.g., graduates of French higher education or talent visa holders with a significant contribution to their field), eligibility may begin after 2 years.
Alternatively, you may also apply for a 10-year residence card after 5 years of continuous legal stay.