This answer depends on your Loan Types.
If you already have Direct Loans, you do not need to consolidate in order to become eligible. The Federal Student Aid Office simply requires that your loan(s) be non-defaulted Direct Loans for PSLF (unless you have Direct Parent Plus loans).
If you do not have Direct Loans, you may have received loans under other federal student loan programs, such as the Federal Family Education Loan (FFEL) Program or the Federal Perkins Loan (Perkins Loan) Program. Loans from these programs do not qualify for PSLF, but they may become eligible if you consolidate them into a Direct Consolidation Loan. However, only qualifying payments that you make on the new Direct Consolidation Loan can be counted toward the 120 payments required for PSLF.
If you do choose to consolidate at some point, it'll reset your PSLF credits as it is considered a "new" loan at that point.
For more information, visit https://studentaid.ed.gov/sa/repay-loans/forgiveness