You should let your hard-boiled eggs come to room temp (about 10-15 minutes) and then put them in the fridge. If you put too many in the fridge hot, and they don’t have enough air to circulate around them, it could warm up nearby food the fridge, and lead to other things spoiling.