Generally, yes. If you are an investor who buys shares in the open market on the day of the IPO, then you can buy and sell at will. However, if you participated in the IPO itself and received shares at the IPO price before the first day of trading, you would be subject to the lock-up period for those shares.