House fires can burn from 1100-1500F so the question is actually how does that much heat affect the specific metal of the parts you are concerned about. There's a lot of basic metallurgy info on the web to look at if you are up to it. Of course that particular pistol may or may not have been exposed to that much heat, and you don't really know for how long either so everything would be a worst-case scenario guestimate at best. You don't mention what pistol this is or provide any pictures, so I have nothing to research based on if the main structural parts are all steel, stainless steel, aluminum alloy, titanium or whatever else.
Frankly if the pistol was just scorched briefly I would say it might be worth your time, but if it got really baked (and depending on what gun it is) then I would start to question if this was a worthwhile project. Good luck with it!