Yes, it is possible to repair burn spots due to a hair straightener on the carpet. For this, take sandpaper and then rub it on the burnt area. After that, cut out the melted fibres and take a similar carpet. From that carpet, cut out the new fibres. Moreover, you need to use industrial-strength glue to patch in the new fibres.