You can buy the stock on the first day of trading. If you want to try and get an allocation of shares at IPO price, various brokerages have different processes where you apply. I use E*Trade mostly, but Robinhood does have the best IPO center of any brokerage I have seen.