It is not necessary for you to do IB to gain admissions to a top university. However, in order to get into them, you need to be a well-rounded student by taking part in various extracurriculars and cocurricular activities. You should keep in mind that quality is greater than quantity as top universities are highly competitive.