My 2c.
I think that having friends can assist you in times of need with emotional and academic support. At the same time, they can hinder you if they are the bludgy type.
Your school ranking won't affect you ... It's how you are ranked within your school and cohort that will affect your atar...