Yes, you can sell IPO shares immediately / on the listing day to make listing gains, if applicable but the gains made will be subject to Short Term Capital Gains tax