Bad Grades Ruining Chances?

If I went to a public school my freshman year and got a 4.0 and then went to a top private school my sophomore year and received mostly B’s but then went to the same top private school my junior year and got a 4.0 (I had 4 AP’s junior year) and finally ending with a 9th-11th grade GPA of 3.87 UW would i still be accepted at a top school like Williams, Amherst, Swarthmore, Tufts?

I got a 33 on my ACT
Good EC’s
Great Recommendations
Varsity Sports, etc.

A 3.87 will not prevent you from being admitted to any of those.

OHMomof2

My thinking was that because I struggled during my sophomore year it would affect my chances?