No, IPO is not based on a first-come, first-serve method. The allotment of shares depends on the general investor interest. If many investors show interest in a particular IPO, the share allocation to retail investors may be done through a lottery.