Yes, though admittedly, I have not yet tried it. Follow the directions for cooking the onion and the garlic in pot and then transfer to the instant pot insert with the rice. Follow the Instant Pot directions for cooking 1 cup of rice.