No, you cannot apply for an IPO under both HNI and RII categories. Applying under both categories may lead to the rejection of your application.