Apply or Prepare first?

Hi, I'm looking to start preparing for the CPA exam. I figure it may take me 2-3 months at the very least to prepare for the exam. I was wondering, should I apply and get permission and timeline of the exams first or should I prepare until I feel more confident?