Yes, you will need to use a trivet or rack when cooking hard boiled eggs in an Instant Pot. This will help to keep the eggs from sticking to the bottom of the pot and getting overcooked.