Can I take the SAT 2 Subject Test after AP Calc AB?

So as of right now, I am a sophomore in high school and I’m thinking about taking a pre-calc course over the summer at a college so when it comes junior year, I can take AP Calc AB. But I’m worried that I won’t do well on the SAT Math 2 since people usually take that after a full year of pre-calculus while I would take it after AP Calc.

I took the Math 2 after Calc AB and got a 780 on it. You can do it as long as you are good a remembering topics or if you study well.

Look at sample SAT Math 2 questions. It might be fresher in your mind, if you recently took Math 3/will take Pre-Calc over the summer.