Your school doesn't directly affect your UAI, however in terms of motivation, study environment, support, it does matter - and generally the selective/private/decent public schools provide that.
However, take my school as an example. Last year we dropped from 126 to 250 and our dux still...